I am building a parsing routine, and am using a regular expression, which
works, EXCEPT when I need to EXCLUDE certain things...

i.e.
$right =~ s/A/X/g;

Basically, replacing A with X in the $right...

However, I may need to exclude this replacement in some of the values of
$right...

i.e.
Anything found between < and > SHOULD NOT be replaced.  \<.*\>
Anything found between & and ; SHOULD NOT be replaced.  \&.*\;
Anything found between {$ and } SHOULD NOT be replaced.  \{$.*\}
Anything found between < and = SHOULD NOT be replaced.  \<.*\=

How would I construct the Regular Expression to Replace A with X except
when A is found in the 4 scenarios listed?


--David Mamanakis



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to