RE: [PHP-DB] Finding numbers in a string

2002-06-23 Thread Russ

Seth:

You should have another colon ' : ' after your alnum expression:


if(ereg([[:alnum:]]+, $textandnumbers, $numbers)) {
 print($numbersBR);
  }

I'm not sure but you also may want to lose the double quotes or maybe
escape them.

Good luck.
Russ


-Original Message-
From: Seth Yount [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 22, 2002 1:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Finding numbers in a string


Forgot my email on that last one ;)

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($numbersBR);
  }


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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Finding numbers in a string

2002-06-21 Thread user

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($numbersBR);
  }


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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php