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, your message got lost way out on an unrelated
> thread.--Joseph]
> 
> Hi all
> 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.

How do you like this one?

        /(?=a)(?=b)/;

You can use any characters instead of the "a" and "b" as long as they 
are different (and not wildcars).

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to