Finding numbers in a string
| From: | user at domain dot invalid | Date: | Fri, 21 Jun 2002 17:34:04 +0000 |
| Subject: | Finding numbers in a string | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19971@lists.php.net to get a copy of this message | ||
Hello all -
I am trying to seperate numberic characters from a string. The book I was looking at described something like this:
if(ereg("[[:alnum]]+", $textandnumbers, $numbers)) {
print("$numbers<BR>");
}
When I run my script I receive this error:
Warning: REG_ECTYPE in ../mypage.php
Anyone have a solution / explanation to my problem
- still reading