note 48732 added to ref.regex
| From: | kangaroo232002 at yahoo dot co dot uk | Date: | Wed, 05 Jan 2005 16:38:01 +0000 |
| Subject: | note 48732 added to ref.regex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82793@lists.php.net to get a copy of this message | ||
i'm building a trawler, and about 95% of the words were logged in the database without any
problems, however was having big difficulties with whitespace. Anyway, after using trim,
eregi_replace and everything, found that the actual code for the alleged whitespace was \xA0 - and
was not being picked up by any regex filters such like [^a-z0-9] and also is not classed in
[:space:]! i couldnt find a reference to this character on ASCII-hex lists as its quite high up -
but if having similar difficulties try http://www.x-ways.net/winhex/index-m.html and
download their software (free) to view your php/ text file etc - it worked very well (for me
anyway)!!
----
Manual Page -- http://www.php.net/manual/en/ref.regex.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48732
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48732&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48732&report=yes
Search -- http://master.php.net/manage/user-notes.php