-
Notifications
You must be signed in to change notification settings - Fork 0
Chapter: Regular expressions (RegExp
)
#34
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
Comments
39.1.2. Cloning and non-destructively modifying regular expressions Probably should be isn't provided. |
No, “is” is correct: If you don’t provide |
Oh, ok, I misunderstood the meaning of the sentence, sorry. |
I'm looking at section 40.3. According to MDN, the 'a' in |
40.3 Flags
Maybe it is worth to add |
40.5.9 Other methods for working with regular expressions
Seems a bit off. Maybe "The first parameter of..." or "Its first parameter is..."? |
40.6.5 Summary: .global (/g) and .sticky (/y) Two tables use one legend with "Column “#”" explanation, but the first table has "Calls" column header instead of "#". |
https://exploringjs.com/impatient-js/ch_regexps.html#replace-replaceAll The table heading has "RegExp w/o \g" (backslash) which should probably be '/g' as in other instances. |
@davidmaxwaterman True, thanks! Fixed in next release. |
Hi! I'd like to mention something that's not wrong, but, I think can actually lead to a misunderstanding about the Under the title 43.6.4.1 Getting a match object for the first match, it says:
Which suggests that with the flag console.log(/(a+)b/.exec('ab aab'));
// --> [ 'ab', 'a', index: 0, input: 'ab aab', groups: undefined ]
console.log(/(a+)b/g.exec('ab aab'));
// --> [ 'ab', 'a', index: 0, input: 'ab aab', groups: undefined ] Wouldn't it be better to say that Cheers! |
No description provided.
The text was updated successfully, but these errors were encountered: