develooper Front page | perl.perl6.internals | Postings from June 2001

Re: More character matching bits

Thread Previous | Thread Next
From:
Bart Lateur
Date:
June 15, 2001 12:52
Subject:
Re: More character matching bits
Message ID:
jkpkit82nthtso5jf91p2ldn8fk66s5h59@4ax.com
On Fri, 15 Jun 2001 06:52:32 -0400, Bryan C. Warnock wrote:

>On a side note (and this *will* sound stupid, but there is a reason I'm 
>asking).  Why is there no logical opposite to '.'; that is, a character 
>which never matches another character?  (Besides, of course, that it's 
>utterly useless from a classic regex perspective.)

You mean, like

	(?!)

?

Actually that's a lookahead that always fails.

For single byte character sets, there's also

	[^\000-\377]

-- 
	Bart.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About