in reply to Understanding Regex

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