Bill Jonas on Fri, 2 Feb 2001 11:00:22 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] regexp???


On Fri, Feb 02, 2001 at 10:42:50AM -0500, Walt Mankowski wrote:
> You might try something like
> 
> /the [^h][^o][^u][^s][^e].* is big/
> 
> which unfortunately will fail to match anything less than 5 letters.

You could put a question mark after each negated character class.  I don't
know, though, if the whole negated character class thing would cause false
negatives.

-- 
Bill Jonas                | "In contrast to the What You See Is What You
bill@billjonas.com        |  Get (WYSIWYG) philosophy, UNIX is the You
http://www.billjonas.com/ |  Asked For It, You Got It operating system."
http://www.debian.org/    |  --Scott Lee, as quoted by Lamb and Robbins


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug