Do I Need preg_match?
| From: | Kurt Boyer | Date: | Wed, 09 Aug 2000 21:32:51 +0000 |
| Subject: | Do I Need preg_match? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10999@lists.php.net to get a copy of this message | ||
In converting the following PERL regular expression to equivalent PHP code,
is the preg_match function the way to go, or is there a way to do it with
ereg?
if($COUNTRY =~ /AR|AU|BD|BN|BG|GW|NA|PH|SG|ZA|TN|VE/) { return; }
---
Kurt A. Boyer
Matchlogic, Inc.
http://www.matchlogic.com