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

[doc] Inconsistent documentation of \G #17674

Open
djerius opened this issue Mar 25, 2020 · 0 comments
Open

[doc] Inconsistent documentation of \G #17674

djerius opened this issue Mar 25, 2020 · 0 comments

Comments

@djerius
Copy link

djerius commented Mar 25, 2020

Where
perlre, perlretut

Description

perlretut warns that

Currently, the \G anchor is only fully supported when used to anchor to the start of the pattern.

whlie perlre provides an example showing \G being used at the end of a pattern:

while ($string =~ /(.\G)/g) {
    print $1;
}

without a similar warning.

There's no description of what not "fully supported" entails, and the example in perlre unaccompanied by a similar warning implies that it is fully supported.

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

No branches or pull requests

2 participants