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


in reply to Re: Problems with formatting the results of my regex
in thread Problems with formatting the results of my regex

How does your regex not match a \r?
$_ = "20120704 00:05:53.46;CmdTask(0);EV;FBLdxPreAlignment rtn=0, Yoff +set=-4278\r"; $tag[0] = "FBLdxPreAlignment"; if (m{([[:digit:]].+?);.+?$tags[0].+?=.+?((-)?[[:digit:]].+?)$}s) +{ printf "%s,%s,,,,,,\n", $1, $2; }
output:
,,,,,,04 00:05:53.46,-4278