; example I included, the ! and the period are invalid, which they
> should not
> be.
>
> The nocomments and invalidchars are constants.
>
> Thanks
>
>> -Original Message-
>> From: Ray Hauge [mailto:[EMAIL PROTECTED]
>> Sent: February 17, 2007 9:45 AM
@lists.php.net
Subject: Re: [PHP] LOL, preg_match still not working.
Correcting myself before my reply damages someone's box:
Vahan Yerkanian wrote:
> rm -rf /usr/local/lib/*
This indeed should be:
rm -rf /usr/local/lib/php/*
instead ;)
--
PHP General Mailing List (http://www.php.net/)
To uns
I am running PHP 4.4.4 on Slackware 10.
> -Original Message-
> From: Vahan Yerkanian [mailto:[EMAIL PROTECTED]
> Sent: February 17, 2007 11:58 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] LOL, preg_match still not working.
>
> Are you running und
It's 6.2 but PHP 4.4.4.
Basically, I'm not getting any error. The expression just don't match. I
don't know if it should or not.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Correcting myself before my reply damages someone's box:
Vahan Yerkanian wrote:
rm -rf /usr/local/lib/*
This indeed should be:
rm -rf /usr/local/lib/php/*
instead ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you running under FreeBSD 6.2 and/or upgraded recently from 5.2.1 to
5.2.2?
I had the same problem on FreeBSD 6.2, with php5 installed from ports
collection after I portupgraded to 5.2.1.
For me it appeared to be some kind weird misconfiguration problem that
happened during the portupgra
Addendum: I encountered a problem when the string contains linebreaks. Maybe
adding \n\r into the brackets fixes your problem.
On Sat, Feb 17, 2007 at 09:27:59AM -0500, Beauford wrote:
> Hi,
>
> I previously had some issues with preg_match and many of you tried to help,
> but the same problem s
As far as I tested, the regular expression works how it is
intended to work.
Maybe this a touch easier to read line do it for you:
elseif (preg_match('|[EMAIL PROTECTED]&*();:_. /\t-]|', $comment))
On Sat, Feb 17, 2007 at 09:27:59AM -0500, Beauford wrote:
> Hi,
>
> I previously had some
t
be.
The nocomments and invalidchars are constants.
Thanks
> -Original Message-
> From: Ray Hauge [mailto:[EMAIL PROTECTED]
> Sent: February 17, 2007 9:45 AM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] LOL, preg_match still not working.
>
> Maybe you just c
Maybe you just copied it wrong, but nocomments and invalidchars are not
quoted, or they're constants.
I don't think you have to, but you might need to escape some of the
characters (namely * and .) in your regex. It's been a while, so I'd
have to look it up.
What's the error you are getting
10 matches
Mail list logo