On Monday, March 4, 2002, at 10:50 AM, Erik Price wrote:
> I thought that in this example (in this thread) the dot was being used
> inside of a character class -- and that it does not need to be escaped
> when it is inside of a character class (wouldn't make sense for "match
> any character"
On Monday, March 4, 2002, at 05:28 AM, bvr wrote:
> To match the dot character (.) you should use escape it like this: \.
> Otherwise the dot will match any character for it's a 'wildcard' and
> the result of your replace will be empty.
I thought that in this example (in this thread) the dot
I did and do, but the manual some times does cover small things list this. I
wish they had a "by example" book for PHP. Thanks for the help.
Regards,
Joseph A. Bannon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think he was trying to say you should take a look at the manual
regarding regular expressions.
Once you get to the part that explains what [^ ] actually does you see
how obvious the answer is.
However, the synical reply from LuC isn't correct.
To match the dot character (.) you should use
Don't don't don't me.. ehehehehee... %P
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 4. maaliskuuta 2002 12:20
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] keeping the dot
Don't don't me.
Regards,
Don't don't me.
Regards,
Joseph A. Bannon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > Try thinking?
>
> Don't be a jerk.
>
Don't be a programmer...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Try thinking?
Don't be a jerk.
Regards,
Joseph A. Bannon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo