Hello
If you simply want to check if the fields contains Po BOX simply use the
stripos function or one of the other string functions. They should be
faster than reg ex.
If you still want to use reg ex I suggest using preg_match since it is
faster than ereg.
About your regex:
It will not find occurences of PO BOX in the field. You'd have to use
something like ereg('PO BOX') without start anchor '^' or end anchor '$'.
I think eregi would be better since it is case insensitive.
It seems to me that you don't understand regular expressions so I suggest
you do some reading up on them.
A very good book about regex is Mastering Regular Expression by O'Reilly
can't remember the author right now sorry.
Regards
Stefan Langer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php