character replacement

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

Elwin (or anyone else who might know)...

thank you for your response. that definitely helps....but
what if I only want to put pipe characters in certain
places where I see spaces....in other words, everywhere i
see a space followed by a slash, i want to leave it as a
space.....so, the phrase:

'Craig ate 1 /2 of a pizza'
or
'Craig ate 1/ 2 of a pizza'

becomes

'Craig|ate|1/ 2|of|a|pizza'

how would that work?? again, thank you for your help!!

Craig
 
you can first replce " /" with say "@#$%^"
then replacet " " with "|"
and then back "@#$%^" with " |"
 
Craig said:
Elwin (or anyone else who might know)...

thank you for your response. that definitely helps....but
what if I only want to put pipe characters in certain
places where I see spaces....in other words, everywhere i
see a space followed by a slash, i want to leave it as a
space.....so, the phrase:

'Craig ate 1 /2 of a pizza'
or
'Craig ate 1/ 2 of a pizza'

becomes

'Craig|ate|1/ 2|of|a|pizza'

how would that work?? again, thank you for your help!!

I saw where Elwin already answered this question in your
other thread.

Please don't multi-post the same question and give it some
time (a day at least) to wend its way through the internet
(possible aournd the entire planet), someone to decide they
understand what you wrote and can answer it, and then reply
has to be propogated back to you,
 
'Craig ate 1 /2 of a pizza'
or
'Craig ate 1/ 2 of a pizza'

becomes

'Craig|ate|1/ 2|of|a|pizza'

how would that work?? again, thank you for your help!!

This is starting to get into Regular Expression territory -- have you
checked the RegExp object in the Scripting Library?

Tim F
 
Back
Top