Skip to content

add hint about starts_for_each_pattern to regex_automata::MatchErrorKind::UnsupportedAnchored documentation #1262

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

Open
BurntSushi opened this issue Apr 28, 2025 · 0 comments
Labels

Comments

@BurntSushi
Copy link
Member

I’ve been there, but the comment is a bit sparse:

An error indicating that a particular type of anchored search was requested, but that the regex engine does not support it.

Just saying that the most common cases/mandatory conditions for DFA/NFA are to have the starts_for_each_pattern might help (I assume that starts_for_each_pattern is mandatory for Anchored(PatternId(_)) variant; I don’t know what’s necessary for the Yes one)

Originally posted by @gagbo in #1261 (reply in thread)

@BurntSushi BurntSushi added the doc label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant