Regex Newbie Q: Non-Trivial Substitution and Modifying the Matched String

2005-10-09 Thread Veli-Pekka Tätilä
Hi, Yet another newbie question about regular expressions: I'd like to find and replace bits of text as usual. However, rather than replace all occurrences in one quick swoop using the s-operator and the g-flag, the replacement is so complex that it cannot be expressed as a straight substitutio

Re: Regex Newbie Q: Non-Trivial Substitution and Modifying the MatchedString

2005-10-09 Thread Chris Wagner
So what ur saying is that u want to do a lot of substitutions in one pass. U could always have one s///g for each thing u want substituted and run it n times. Can u post some actual strings that u want to parse and the substitutions? Then we can figure it out. At 10:58 PM 10/9/05 +0300, =?iso-88