> From: Matthias Keller [mailto:[EMAIL PROTECTED] > Hi > > Still writing some cool rules for my SA (and if they prove themself > useful hopefully soon for everyone's SA) and I'm trying > something like: > match some word and if at some later position there's > anything BUT this > word, return true > > I'm thinking about something like this: > /([a-z]) [^\1]/i > > This should for example match > asdf fdsa > asdf kdkd > asdf asd > > but NOT > asdf asdf > > Is that possible anyway?
/^(asdf) (?!\1)/i matches asdf fdsa asdf kdkd asdf asd but NOT asdf asdf The problem is that without the ^ it will match trivially on the last asdf (which of course doesn't have a following asdf) but any way of anchoring the pattern will work You might also consider something like $Subject =~ /asdf/ && $Subject !~ /asdf asdf/ [EMAIL PROTECTED] 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -e"print join er,reverse',','l hack',' P','Just anoth'"
