[PHP-WIN] preg_match function

2003-10-10 Thread Omar
Hello everyone. In this line preg_match("/[^a-z0-9'\?!-]", $item) i can´t find de way to add vowels with accent (á,é,í,ó,ú,ñ,Ñ) and other characters to the preg_match function. Can anyone help me? The documentation of this function is not very clear (or complete) to me. Thank you. -- PHP Windo

[PHP-WIN] preg_match issue

2003-08-15 Thread Pascal S.
I have a function that checks the syntax of a string using preg_match. This function is used in a loop and always hangs on the same string (7 out of many more). However, the function acts as expected when used individually on that string (ie when the array of strings to loop on is reduced to just

[PHP-WIN] preg_match

2003-08-15 Thread Pascal S.
I haven't found any notice about this, but I am starting to think there might be a limit to either the length of the string passed to preg_match or the number of time a pattern is repeated in preg_match. See my earlier post for details. Thanks, Pascal -- PHP Windows Mailing List (http://www.p

[PHP-WIN] preg_match issue

2003-08-15 Thread Pascal S.
I have a function that checks the syntax of a string using preg_match. This function is used in a loop and always hangs on the same string (7 out of many more). However, the function acts as expected when used individually on that string (ie when the array of strings to loop on is reduced to just

RE: [PHP-WIN] preg_match

2001-03-02 Thread James Duncan
From: Doug Brewer [mailto:[EMAIL PROTECTED]] Sent: 03 March 2001 00:33 To: James Duncan; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] preg_match I'm not a regex expert, but can't you use a negated class if (preg_match ("/[^a-z]/i", $name)) { echo "has non alpha chars"

RE: [PHP-WIN] preg_match

2001-03-02 Thread Doug Brewer
nal Message- | From: James Duncan [mailto:[EMAIL PROTECTED]] | Sent: Friday, March 02, 2001 6:20 PM | To: [EMAIL PROTECTED] | Subject: [PHP-WIN] preg_match | | | Help, | | This is driving me mad and I know there must be a very | simple solution. I’m | trying to detect if my strings contain ONLY cer

[PHP-WIN] preg_match

2001-03-02 Thread James Duncan
Help, This is driving me mad and I know there must be a very simple solution. I’m trying to detect if my strings contain ONLY certain values. For instance, I’ m trying to limit my “$name” string to just a-z (case insensitive) characters. I’m trying to do this with preg_match (unless there is an e