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
Positive lookbehind: (?<=Y)X, matches X, but only if there’s Y before it. Negative lookbehind: (?<!Y)X, matches X, but only if there’s no Y before it.
(?<=Y)X
X
Y
(?<!Y)X
The text was updated successfully, but these errors were encountered:
support lookbehind
790dabe
CJex#23 CJex#41 CJex#48 CJex#54
demo: https://jianyu.io/regulex/
Sorry, something went wrong.
that demo link didn't include positive or negative lookbehind, but i fiddled with it and it looks good to me. Thanks :D
demo with positive lookbehind
demo with negative lookbehind
No branches or pull requests
Positive lookbehind:
(?<=Y)X
, matchesX
, but only if there’sY
before it.Negative lookbehind:
(?<!Y)X
, matchesX
, but only if there’s noY
before it.The text was updated successfully, but these errors were encountered: