why does eregi match for whitespace when there is none?
| From: | Peter J. Schoenster | Date: | Fri, 01 Nov 2002 05:44:45 +0000 |
| Subject: | why does eregi match for whitespace when there is none? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122380@lists.php.net to get a copy of this message | ||
Here is the example:
<?php
$string = 'asfddsaz';
if (eregi('\s', $string)) {
echo "Whitespace present";
}else {
echo "NO Whitespace present";
}
?>
Why does the above return true? There is no whitespace in the string.
What am I missing?
Peter