http://www.perlmonks.org?node_id=565535


in reply to Re^3: Regex, extracting stuff from the middle of a line
in thread Using a regex function from a hash

You should escape the special '\' symbol:
m|\\(\w+)| and print $1, "\n";
For the date/time:
m|:\s+(\S+)| and print $1, "\n";
See perlre