We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[#start_line [ | '1' | [capture 1+ '11'] [1+ #repeat:1] ] #end_line]
Should compile to:
^(?:1?|(11+?)\1+)$
(which is a slight rephrasing of https://stackoverflow.com/questions/3296050/how-does-this-regex-find-primes)
[#start_line [ | '1' | [capture:factor 1+ '11'] [1+ #repeat:factor] ] #end_line]
Should compile to the same:
^(?:1?|(?P<factor>11+?)\1+)$
(because named backreferences aren't available in regex)
[capture #token][#repeat:0]1
(\w*)(?:\1)1
(Wrapping required to disambiguate "\1 and then 1" from \11)
\1
1
\11
See e.g. https://learnbyexample.github.io/py_regular_expressions/groupings-and-backreferences.html
The text was updated successfully, but these errors were encountered:
Python is done, Rust still needs doing
Sorry, something went wrong.
No branches or pull requests
Should compile to:
(which is a slight rephrasing of https://stackoverflow.com/questions/3296050/how-does-this-regex-find-primes)
Should compile to the same:
(because named backreferences aren't available in regex)
Should compile to:
(Wrapping required to disambiguate "
\1
and then1
" from\11
)See e.g. https://learnbyexample.github.io/py_regular_expressions/groupings-and-backreferences.html
The text was updated successfully, but these errors were encountered: