How to find variable length words...
Posted: Thu Jan 21, 2010 3:25 pm
Hi,
I'm sure this has been covered somewhere before... but my searches didn't give any useful results.
I am trying to edit a collection of XML documents that have variable length words that I want to replace with the same word;
words are formatted as: "User-#", or...
"User-##", or...
"User-###"
where "#" is an integer number from 0-9.
All words are (planned) to be replaced with "User-2".
Each method I've tried leaves me with a new word that that is made of the replacement word + all the original #'s from the original word.
Can anyone help?
Thanks,
Fred
I'm sure this has been covered somewhere before... but my searches didn't give any useful results.
I am trying to edit a collection of XML documents that have variable length words that I want to replace with the same word;
words are formatted as: "User-#", or...
"User-##", or...
"User-###"
where "#" is an integer number from 0-9.
All words are (planned) to be replaced with "User-2".
Each method I've tried leaves me with a new word that that is made of the replacement word + all the original #'s from the original word.
Can anyone help?
Thanks,
Fred