Hello all,
I saw this statement
$name = ereg_replace("[^A-Za-z0-9.]", "", $name);
What is the difference between [^A-Za-z0-9.] and [A-Za-z0-9.]?
Based on my understanding of regular expression, the [] is used to include all valid characters for replacment in function ereg_replace.
Then what is the purpose of including ^ into the []?
Thank you