Regular Expressions niggle
Posted: Mon Jul 04, 2005 1:52 am
This is a general criticism about Regular Expressions (REs), not AFR. Have you ever noticed how difficult they are to master and how incomprehensible they are? No? Well just try debugging one that's not working and you will see what I mean.
The point of this message is to ask for some guidance. All the REs documentation I have been able to find on the web concentrates on just matching (i.e. finding) text. However, in the real world what we want to do is not only find one string of text but to replace it with another. Yet the RE syntax for replacing text is different to that for searching. And the RE documentation I have been able to find does not cover this aspect of REs at all.
So, does anyone know of a good source of documentation for REs that includes both searching and replacing?

The point of this message is to ask for some guidance. All the REs documentation I have been able to find on the web concentrates on just matching (i.e. finding) text. However, in the real world what we want to do is not only find one string of text but to replace it with another. Yet the RE syntax for replacing text is different to that for searching. And the RE documentation I have been able to find does not cover this aspect of REs at all.

So, does anyone know of a good source of documentation for REs that includes both searching and replacing?