php Filter var & common regex patterns
|

php Filter var & common regex patterns

People … quit messing about with ereg_replace / preg_replace / eregi or other things you know nothing of… use the php filter_var. DO IT. Commonly found bullshit on the interwebs : function isValidEmail($email){ return eregi(“^[_a-z0-9-]+(\.[_a-z0-9-]+)@[a-z0-9-]+(\.[a-z0-9-]+)(\.[a-z]{2,3})$”,$email); } eregi is deprecated and silly, the above WILL miss some of the weirder or longer email addresses like school/company…

New blog! yay! etc.

So I’m starting a blog so i can keep track of tips. tricks and shortcuts I find/come up with or utilize during my daily work as an unappreciated IT drone. yes there’s hundreds of thousands of other blogs. but I have web space + bandwidth etc etc. so yeah. This blog is hosted on quad…