I did this:
print '__xxx__' =~ /\b_+(\w+[^_])_+\b/ ? "$1\n" : "no match\n";
Honestly didn't seem that hard (assuming your goal was to strip the underscores)
In reply to Re: Regex puzzle for you
by Anonymous Monk
in thread Regex puzzle for you
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |