Visit the Official PHP Website
By James N Hitz
Very Little Coding
With regular expressions, you can easily create a pattern to test the above email address and guess how many lines of code it would take.... Unbelievable! Less than two. ONE LINE OF CODE!
Regular expressions offer much more flexibility and versatility than the above equality operators, and also include a host of tricks and modifiers. Most have been borrowed from Perl (and from other sources). They are... simply put... epitomes of RAW Power!!
Hey. We are just singing their praises but .... what are these regular expressions anyway!? Dont you think I have kept you in suspense long enough? Ok.