print '__xxx__' =~ /\b_+(\w+?)_+\b/ ? "$1\n" : "no match\n"; [download]
In reply to Re: Regex puzzle for you by johnnywang in thread Regex puzzle for you by QM