|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
For reasons best known to someone else I need to take a text string and replace all spaces with other text.
I have found the translate function but that only replaces one character with one character. I need to replace one space will several characters: for example - 'Hello World' becomes 'Hello123456World' Is there a way this can be done? Many thanks Hin |
|
#2
|
||||
|
||||
|
short answer is yes.
What languages do you have available to accomplish this in, php, xsl, perl etc.... http://www.dpawson.co.uk/xsl/sect2/...e.html#d9042e82
__________________
Teflon - The Black <desc>Mark This Up</desc> Last edited by Teflon : August 26th, 2004 at 12:26 PM. |
|
#3
|
|||
|
|||
|
Have a look at the replace() function in the strings section of www.exslt.org.
EXSLT is an initiative to provide "standard" extensions to XSLT1. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Replacing one char with many chars |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|