by Kevin Haidl <kevinh(at)actofmind.com>
|
Date: |
Thu, 07 Sep 2000 17:54:46 -0700 |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
PHP Version 3.0.12
Why does this match:
ereg("^[A-Za-z_]+[A-Za-z0-9_]* *=?.+$", $var)
But this does not:
ereg("^[A-Za-z_]+[A-Za-z0-9_]*\\s*=?.+$", $var)
The only difference is the "\\s" denoting a whitespace character. I have
tried 0-4 backslashes. My PHP book says \s (with the extra backslash
needed for the double-quote escaping) is supposed to work. What the heck
is up with my PHPs impoverished regexes?
Kevin Haidl
Los Angeles, CA
kevinh(at)actofmind.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA