Re:Stop writing Regular Expressions – Express them with Verb...
by kcorbitt on Monday August 05, 2013 @11:24PM
(#6164627)
I agree that for someone who already has the skills to reason with regexes this has little to offer. But I'm not ready to count the idea out yet -- it's easy to underestimate the length to which people will go to avoid being forced to learn a new way to think. Easy string matching without regexes would have been extremely appealing to my just-starting-programming self.
Re:Stop writing Regular Expressions – Express them with Verb...
by brudgers on Tuesday August 06, 2013 @12:31AM
(#6164805)
As a language, Regex is somewhat opaque to most people these days.
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.
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.