Support regex comments #35

Closed
pcasaretto opened this Issue Dec 4, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@pcasaretto

From the docs http://www.ruby-doc.org/core-1.9.3/Regexp.html

Comments can be included in a non-x pattern with the (?#comment) construct, where comment is arbitrary text ignored by the regexp engine.

... the x option enables free-spacing mode. Literal white space inside the pattern is ignored, and the octothorpe (#) character introduces a comment until the end of the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment