Hey all:
Yesterday I started to get into REGEX, because I started a project that is forcing me to. I read and played with REGEX all last evening, and I'm still having difficulty with the main items I need to use REGEX with. While in ULTRAEDIT, I tried the three main REGEX expressions I need, and I can't get them right. Let's say that you have the phrase:
The quick brown fox jumps over the lazy dogs back.
Here is what I'm trying to do:
1. If the item I'm comparing has "The " (the space is significant) at the beginning, remove it. But I don't want the second "the" messed with.
2. If the item I'm comparing has "back." at the end, remove it.
3. If the item I'm comparing has "over" in it, change it to "under".
4. Finally, if the item I'm comparing has "lazy", remove it completely.
I'm still trying to learn REGEX. After what "Mofi" helped me with before (thanks again, "Mofi"), it peeked my interest in it, but I was never forced into learning it; until now. I've gone through this forum, and I couldn't locate things similiar to this; hopefully someone can help.
For any help that can be given I will say THANK YOU, THANK YOU in advance!
I forgot to say, that I would be using a script that would be reading one line at a time and doing the comparisons, and only of for instance condition #1 applied, then make the change.


