Re: [PHP] validating ereg patterns

2006-03-29 Thread Philip Hallstrom
How do I detect the difference between a bad ereg pattern and no matches? I've got a UI that allows the user to enter an ereg expression. Clearly, the user may enter an invalid expression (for example, the expression may not have matching [] brackets). ereg returns false if there are no matc

[PHP] validating ereg patterns

2006-03-29 Thread Jared Nedzel
How do I detect the difference between a bad ereg pattern and no matches? I've got a UI that allows the user to enter an ereg expression. Clearly, the user may enter an invalid expression (for example, the expression may not have matching [] brackets). ereg returns false if there are no mat