> ||> To cross that hurdle you have to combine alternation and > the wildcard: > ||> (word1|word2).*?(word1|word2) > > ||With this, it also matches when you have word1 twice, with no word2 > > This works with PowerGrep but not all regex engines can handle > it: > ((word1.*?word2)|(word2.*?word1))
Whew...quite the expression, but that did it. Thanks Hakki David Troesch | Atlanta, GA | ICQ# 2333123 Autoit3: Scripts for the Next Generation - www.hiddensoft.com Funstuff: In a Non-smoking Area: If we see smoking we will assume you are on fire and take appropriate action. ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
