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 support for ^ and $ anchors in regular expressions #23

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

Conversation

neilyio
Copy link

@neilyio neilyio commented Nov 16, 2024

This PR adds support for the ^ (start of text) and $ (end of text) anchors in our regular expression engine. I introduced explicit handling for the StartText and EndText instructions to ensure proper state transitions during matching.

Added unit tests for patterns involving ^ and $.

@philippemnoel philippemnoel deleted the neil/regex-boundary branch November 20, 2024 13:09
@philippemnoel philippemnoel restored the neil/regex-boundary branch November 20, 2024 15:35
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