R
Rory Becker
Hi all.
I have managed over the last few years to get by with relativly little regex
knowledge.
However I now have what seems like a simple problem which I simply cannot
find a solution for.
As stated Regular expressions are not my strong point.
What I need is a way to replace a set string within a source but only where
that set string is not surounded by brackets.
Thus I would like to (for instance) change "AB(A)BABA" into "CB(A)BCBC"
Must I match all the A's and then loop to find those that are not surrounded
or is there a better way?
Thanks in advance
I have managed over the last few years to get by with relativly little regex
knowledge.
However I now have what seems like a simple problem which I simply cannot
find a solution for.
As stated Regular expressions are not my strong point.
What I need is a way to replace a set string within a source but only where
that set string is not surounded by brackets.
Thus I would like to (for instance) change "AB(A)BABA" into "CB(A)BCBC"
Must I match all the A's and then loop to find those that are not surrounded
or is there a better way?
Thanks in advance