ereg_replace Help

coolhomecoolhome Junior MemberShared Hoster
Ok not to long ago i ask how to keep only text + numbers as
ABC's (A-Z) + Numers (0-9)
Now i want to know how to keep a
$text = ereg_replace("[^A-Za-z0-9]", "", $text);
For this please help. I dont understande of you find the [^A-Za ect things. If tutorial on that also please post or what is it perl or sometihng?!

Comments

  • $cripts$cripts Beginner Link Clerk
    its regex....lol
    and it would be this
    $text = ereg_replace("[a-zA-Z0-9].*?,{1}");

    i believe......dont hold me on this though lol ima noob with regex
  • coolhomecoolhome Junior Member Shared Hoster
    thanks but i dont need it no more. I found better way to protect hacking ect ect :D
Sign In or Register to comment.