Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support regex comments #35

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

Support regex comments #35

pcasaretto opened this issue Dec 4, 2012 · 0 comments

Comments

@pcasaretto
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant