print $1 if "ab _ cd _ ef _ gh " =~ /(.*?(_).*?\2.*?)\2/; __END__ ab _ cd _ ef [download]
In reply to Re: Quick regex by Anonymous Monk in thread Quick regex by Karger78