Stop writing Regular Expressions – Express them with Verbal Expressions
thechangelog.com
thechangelog.com
var vrl = VRL().
schema("https").
tld("com").
sld("ycombinator").
subdomain("news").
path("/item").
query({"id": "6164276"});
Seriously though, Verbal Expression is a great way to turn terse regexps into un-reusable verbiage that barely improves readability.Don't know if this is the solution I'm looking for though
I'm not sure that someone who relies on this would be able to debug the resulting generated regex when something doesn't work as expected.
Or a person wants to solve a simple problem by matching a simple string, so they decide to learn Regex. Now they have two problems, the second is learning to express what they want to do.
The problem this solves is casual use by people who don't match strings all day. There are tradeoffs - most of them are keystrokes. On the other hand for casual Regexers slowing down and unpacking the expression is probably useful.
Still, it's worth a shot trying to create a tool like this. What I don't get is how they would handle subexpressions.