PHP_start Posted April 14, 2007 Share Posted April 14, 2007 Hi All: I'm new to PHP and now I'm trying to write code to take of all the words that had odd characters like (&,%,$,...etc)all the non english letters from my list. therefore I was trying to use the eregi function but I don't know why its not doing the work i need:( below is what I used: if (eregi("^[a-z0-9]",$str)) echo "Proper English word" Can any one please help me with it:( Link to comment https://forums.phpfreaks.com/topic/47030-help-with-regular-expression/ Share on other sites More sharing options...
MadTechie Posted April 14, 2007 Share Posted April 14, 2007 this this post Here Link to comment https://forums.phpfreaks.com/topic/47030-help-with-regular-expression/#findComment-229362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.