in reply to matching not just words; alternative to (\w+) ?
Perhaps .+ or \S+ is what you want instead of \w+?
duff
Both of those will also match control characters, like ESC and NUL. Probably a bad idea.
----I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident. -- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated