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

regexp/syntax: add examples for flag parsing #24136

Open
kevinburke opened this issue Feb 26, 2018 · 1 comment
Open

regexp/syntax: add examples for flag parsing #24136

kevinburke opened this issue Feb 26, 2018 · 1 comment

Comments

@kevinburke
Copy link
Contributor

@kevinburke kevinburke commented Feb 26, 2018

Reading the description of grouping and flags, I'm confused about how those flags would apply to theoretical strings. An example or two would be good to demonstrate the use and placement of flags, as well as the resulting capture groups.

@bradfitz bradfitz modified the milestones: ujnpl, Unplanned Feb 26, 2018
@ysmolsky
Copy link
Member

@ysmolsky ysmolsky commented Feb 27, 2018

@kevinburke. I would like to tackle it, but have a couple of questions.

Maybe you meant the regexp package? It also lacks examples for Perl/POSIX syntax and groupings. I am asking because for me it's hard to see how to show a concise example based on regexp/syntax only. The output of regexp/syntax functions are structures indented for machine consumption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.