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


in reply to Re^3: Determing if this regex matched
in thread Determing if this regex matched

That's what toolic had before editing the his post. Doesn't work because if the first element of the or evaluates true the second one doesn't get evaluated, so if there's a quote/space at the beginning, quotes/spaces get left at the end.