reg exp help
Posted: Wed Apr 25, 2001 6:17 pm
fairly new at regular expression replacing, but a quick question that I couldn't figure out. How would I go about matching the following;
%EJ%erik <-- this "erik" is NOT matched because it has "%EJ%" in front of it
erik was here <-- this "erik" is matched
derik <--- this "erik" is matched even though it's within a word
I guess this is an exception to a matching rule.... match all occurences of "erik" except those that have "%EJ%" immediately in front of it.
I've tried using the "^" operator but it works on characters not a specific set of characters.
Thanks for any help!
%EJ%erik <-- this "erik" is NOT matched because it has "%EJ%" in front of it
erik was here <-- this "erik" is matched
derik <--- this "erik" is matched even though it's within a word
I guess this is an exception to a matching rule.... match all occurences of "erik" except those that have "%EJ%" immediately in front of it.
I've tried using the "^" operator but it works on characters not a specific set of characters.
Thanks for any help!