and lastly. what it should include are regular expressions for the most common uses, like validating urls,email,phone numbers,zipcodes,etc. and explaining why and how they work. having a resource of optimal expressions for this would be invaluable in itself and draw traffic, traffic that then is to be taught the art of regex ... and then, only then, world domination.
so, start of thread :
$term = email // can be zipcode,etc.
"$term validation"
post 1 : here is what i do, and why.
post 2 : post 1 does not validate THIS but THIS does, here is why.
post 3 : interesting post 2, how about this? i find it to be faster and here is why.
post 4 : ...
post 34 : well, we've narrowed it down to THIS and THIS. THIS requires preg_replace and you need it to be compiled , have php version X ... and THIS uses ereg_replace and ... now, in THIS occasion you may want to do THIS as THIS happens. and let's say you are doing THIS, ...
hope that makes sense 🙂