I sometimes want to match whitespace but not newline.
So far I\'ve been resorting to [ \\t]. Is there a less awkward way?
[ \\t]
m/ /g just give space in / /, and it will work. Or use \S — it will replace all the special characters like tab, newlines, spaces, and so on.
m/ /g
/ /
\S