I don't want to name and shame but preprocessing a user regex before passing it to burntsushi's regex-syntax is... annoying. And it broke my Unicode properties syntax!
-
Show this thread
-
I can't help but feel that if
@burntsushi5 provided a "sloppy" mode that acts more like the "guess what you mean" other regex engines for regex-syntax (not even regex!), that then maybe people wouldn't feel the need to do this and break edge cases they didn't think about.1 reply 0 retweets 0 likesShow this thread -
Replying to @CAD97_
Having a sloppy mode requires either a completely new parser or significantly complicating the existing parser. That's not something I want to maintain. The preprocessing step is suspect, unless you have an existing corpus of regexes. There will just be other inconsistencies.
1 reply 0 retweets 1 like
If someone really needs this, then they could write their own parser that compiles down to regex_syntax::HIR, and then that can be used to build a regex. Lots of work though.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.