4 ms·
Similarly, I wish Regex engines had built in “partial match” support — i.e. is there some suffix that can be added to this string that results in a match? I wr
by oconnore 6y ago
Similarly, I wish Regex engines had built in “partial match” support — i.e. is there some suffix that can be added to this string that results in a match?
I wrote something like this in Haskell for doing path traversal (descend into directory, or skip?). But it seems like a straightforward API addition to expose valid/non-valid states.
- wahern 6y agoThe regex engine used by musl libc, TRE (https://github.com/laurikari/tre https://github.com/laurikari/tre), supports approximate matching. musl doesn't seem to expose that capability, however.
- ken 6y agoThis sounds like a perfect use case for object oriented programming. “I want something mostly like that thing that already exists, but with a slight variation.“ Or hooks, if you’re one of those weird Lisp programmers. Unfortunately, virtually all regex engines I’ve ever seen were an opaque black box with no ability to modify the functionality at all.