Re: regular expression that doesn't match any string [repost as thread root]

2004-02-25 Thread Jenda Krynicky
From: "R. Joseph Newton" <[EMAIL PROTECTED]> > Reposted as new thread: > > [Note: I am reposting this as a new message, in order to start a new > thread. Please remember to use the new message command, rather than a > reply, when starting a new subject. For many of us with threaded > browsers, y

Re: regular expression that doesn't match any string

2004-02-25 Thread Öznur Taştan
- Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 1:20 PM Subject: Re: regular expression that doesn't match any string > Öznur tastan wrote: > > > > Just for fun (really

Re: regular expression that doesn't match any string

2004-02-25 Thread Rob Dixon
Öznur tastan wrote: > > Just for fun (really no context) i was wondering how to create regular > expressions that will never match any string. It's a strange leisure activity, but how about /[^\Q$string\E]/ which will never match $string. /R -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: regular expression that doesn't match any string

2004-02-25 Thread John W. Krahn
Öznur tastan wrote: > > Hi all Hello, > Just for fun (really no context) i was wondering how to create regular > expressions that > will never match any string. > > /^[^\w\W]/ is one of them am I right? No string can start with a character > that is neither alphanumeric nor nonalhanumeric. >

RE: regular expression that doesn't match any string

2004-02-25 Thread Tim Johnson
I believe the '.' character does not have the same special meaning within a character class, and that's why it isn't matching what you think it does. You should check out the YAPE::Regex::Explain module. It's great for debugging regular expressions. -Original Message-