OK,
I've been playing around with the regex replacements for the last 8 or so hours. I need HELP!!!!
I've figured out how to make single pattern replacements. i.e.
search: /patternA/
replace: valueB
This replaces patternA with valueB
Also
I've also got logical OR's pattern replacements working.
search: /patternA|patternB|patternC/
replace: valueD
This is great for replacing patternA and patternB and patternC with valueD
What I realy need help with, and I'm not even sure if it's possible, is multiple pattern matching with different values for each pattern match.
Example:
search: /patternA/, /patternB/ ,/patternC/
replace: patternA with valueD, patternB with valueE, patternC with valueF
Any help would be greatly appreciated.
Cheers,
Chris
|