ID: 9309
Updated by: andre
Old-Status: Open
Status: Analyzed
Old-Bug Type: *Regular Expressions
Bug Type: Feature/Change Request
Assigned To: 

a) in fact is does return 1 and 0, that isn't exactly true
and false in php 4 anymore, either documentation or regex
code needs a small update... moving to change request

b) your problem is another, your regex is wrong, try echoing
your pattern before passing it to ereg() and you will see
that php ate up your brackets (eg. [0-9]2)

it should read like this:

if (!ereg('([0-9]{'.$id_size.'})',"$id_usr")){
  echo "Error ID";

Previous Comments:

[2001-02-16 18:35:03] [EMAIL PROTECTED]
if (!ereg("([0-9]{$id_size})",$id_usr)){
  echo "Error ID";


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to