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

Branch reset pattern #23

Open
gmarsden opened this issue May 7, 2015 · 0 comments
Open

Branch reset pattern #23

gmarsden opened this issue May 7, 2015 · 0 comments

Comments

@gmarsden
Copy link

gmarsden commented May 7, 2015

It would be nice if branch reset patterns were supported.

CL-USER> (scan-to-strings "(?|(abc)|(123))" "abcdef")
"abc"
#("abc")
CL-USER> (scan-to-strings "(?|(abc)|(123))" "123456")
"123"
#("123")

instead of the default behaviour:

CL-USER> (scan-to-strings "(abc)|(123)" "abcdef")
"abc"
#("abc" NIL)
CL-USER> (scan-to-strings "(abc)|(123)" "123456")
"123"
#(NIL "123")

See http://perldoc.perl.org/perlre.html#%28%3f|pattern%29

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