I am trying to strip inputted memo type data of url's and email address...
i have created the following expression
Code: Select all
exp = "^((їa-zA-Z\/\/:]+)|(їa-zA-Z0-9\.@]+))\.їa-zA-Z\.]{1,3}$";
$desc = eregi_replace($exp,"",$_POSTї'description']);to me i think i have tried to theorise the expression from what i wanted to accomplish
^(([a-zA-Z\/\/:]+) means im trying to check if it contains the url format
|([a-zA-Z0-9\.@]+)) means im checking for either the www or the email syntax
but the dog gone thing doesn't seem to work...have i gotten my rationale rite??\.[a-zA-Z\.]{1,3}$ means im cheking for the extension
how does this work in reverse?
Kendall