News for hackers. Stuff that matters.
Re:frak: Transform collections of strings into regular expre... by noprompt on Tuesday August 13, 2013 @03:49PM (#6207844)
Actually, frak doesn't generate patterns that require an exact match. I use Clojure's `re-matches` function (for exact matches) in the example and the tests to show and ensure the generated patterns work as expected. Clojure has another function called `re-find` which is a bit more relaxed. An expression like #"bar" will fail with the string "barn" using `re-matches` but succeed with re-find. I plan to include an option for generating regexes that require exact matches.

There are no comments on this comment yet.