Re: regex problem
| From: | John Nichel | Date: | Thu, 01 Jun 2006 18:45:47 +0000 |
| Subject: | Re: regex problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237199@lists.php.net to get a copy of this message | ||
Merlin wrote:
Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for "test_a9393.htm", but not for "9393.htm" as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a hint why the regex also is true for text that does not start with _a infront of the number? Thank you for any help, MerlinEscape the period before htm. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com