too slow to do in regex, those are printable ascii chars and they are
consecuative in the ascii table, cast the char to int and check if its
in the range of 0x20 and 0x7E
Zaid
On 5/28/07, Al-Faisal El-Dajani <[EMAIL PROTECTED]> wrote:
> Hello all,
> I'm writing a code that needs to search for certain characters. Thought of
> doing it using regular expressions, only problem is i'm not good in using
> them. So can somebody help?
>
> I need to search if a string contains any character that isn't within the
> following list:
> 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./?;:\'\"[]{}\\|[EMAIL
> PROTECTED]&*()-=_+<>\r\n`~
> (and space)
>
> I'm using php's preg_match, which, as the documentation says here, uses
> perl syntax in regular expressions (there are more than one??).
>
> Thanx for the help in advance.
> --
> Al-Faisal El-Dajani
> Phone: +962-7-77 799 781
> P.O Box: 140056
> 11814 Amman, Jordan
> >
>
--
---------------------------
Netiquette -> http://www.dtcc.edu/cs/rfc1855.html
Netiquette Nazi ->
http://redwing.hutman.net/%7Emreed/warriorshtm/netiquettenazi.htm
---------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Jolug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Jolug?hl=en-GB
-~----------~----~----~----~------~----~------~--~---