Subj : Re: [regexp] Excluding specified string To : comp.programming From : John W. Krahn Date : Sat Oct 08 2005 01:06 pm Piotr 'Qertoip' Włodarek wrote: > I want to match " SQL", but only if it is not preceeded by "Microsoft". > Example: > "abcrofrtg SQL" is match. > "Microsoft SQL" is not a match. > > Of course I know how to exclude a single character ([^a]) but how can I > exclude the whole string? $ perl -e' for ( "abcrofrtg SQL", "Microsoft SQL" ) { print /(?