note 46912 deleted from function.preg-match by betz
| From: | betz@php.net | Date: | Wed, 27 Oct 2004 16:56:29 +0000 |
| Subject: | note 46912 deleted from function.preg-match by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79198@lists.php.net to get a copy of this message | ||
Note Submitter: syragon AT syragon DOOT COOM
----
Has anyone determined how to do something like...
preg_match return true on a string that is any length of numbers at the end, and a maximum of one
text character at the front?
preg_match("/^[M][0-9.]$/",$str)
for example that should return true to m5456456 m5 m0005675675 etc.... But I always get a false. I
only get true when I take the dollar sign out.... Isn't the dollar sign default to end-of-line
marker?
Email me if you can!
----
Reason: useless note