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

add and modify the non-greedy #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

CuiZewen
Copy link

In the past, there is only greedy quantifiers(.) , so i add the lazy quantifiers(.?)

The first tries first to repeat then backtracks to following pattern, the second tries first the following pattern then backtracks to repeat.

for example on the string "abab"
a.b will match "abab", a.?b will match only the starting "ab" :)

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

Successfully merging this pull request may close these issues.

1 participant