Walt Mankowski on Fri, 2 Feb 2001 00:40:24 -0500


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

Re: [PLUG] regexp???


On Thu, Feb 01, 2001 at 07:41:41PM -0500, MaD dUCK wrote:
> how can i create a regexp which will match anystring of the form
>   "the xxxxxx is big"
> unless xxxxxx is "house"
> 
> ?
> 
> using [^house] obviously doesn't work... what can i use then?

In Perl you could say

   if (/the (.*) is big/ && $1 ne 'house')

Walt

Attachment: pgplunr9nmZjF.pgp
Description: PGP signature