Jump to content

Help with Regular Expression


PHP_start

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.