Both regex are very basic , both are covered in perlintro
your regex limits the "key" to word characters, his regex only forbids whitespace and literal *=
There is a principle, Be liberal in what you accept, and conservative in what you send
In reply to Re: Understanding Regex
by Anonymous Monk
in thread Understanding Regex
by hareesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |