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


in reply to Re^2: How to strip comments and whitespace from a regex defined with /x?
in thread How to strip comments and whitespace from a regex defined with /x?

Probably not easier, but possibly less ambiguous.

I wonder if constant regex's are compiled once during the compile phase. If so, would be useful if Deparse reconstructed the regex.

(Currently reading and posting from my tablet, so will try to remember to try to test this, later.)

  • Comment on Re^3: How to strip comments and whitespace from a regex defined with /x?