I think that what you want is this:
That will strip out all characters that are neither \w nor a dash.s/[^\w-]+//g
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc
In reply to Re: Regex question : How to match \w and just the dash
by Stevie-O
in thread Regex question : How to match \w and just the dash
by hmbscully
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |