News for hackers. Stuff that matters.
Re:SRL – Simple Regex Language by adamjcooper on Monday August 29, 2016 @06:13PM (#12385878)
Consider changing "either of" to "any of".

The word "either" implies only two choices, making your opening example confusing when the first "either of" was really picking from three possibilities.

Re:SRL – Simple Regex Language by nailer on Tuesday August 30, 2016 @02:08AM (#12387867)
Also 'begin' is vague - it could mean start of word, here it means start of line. Make it 'start of line'

I like the general approach, although the 2010-era BDD fake natural language is a turn off.

Re:SRL – Simple Regex Language by pbhjpbhj on Tuesday August 30, 2016 @09:00AM (#12389606)
A really good shorthand for "start of line" is "^"

;o)

Re:SRL – Simple Regex Language by nailer on Tuesday August 30, 2016 @10:53AM (#12390667)
A really good shorthand for "yes, however it's not the most discoverable thing in the world" is "& ^ ( ^ ^ % & ^"
Re:SRL – Simple Regex Language by pbhjpbhj on Tuesday August 30, 2016 @02:39PM (#12392703)
Is it less discoverable than the proposed alternative though?

In both cases one looks up the documentation, in one I find that search for the line start requires a regex with "^" and in the other I find something like "begin with" of Simple Regex Language (SRL). I still need to read (or test) to find what "begin with" means and I still couldn't guess it - why not "start with", "open with", "first character", or a myriad of other possible options.

Whatever suits the user I suppose.

Re:SRL – Simple Regex Language by nailer on Wednesday August 31, 2016 @10:41AM (#12398635)
Since code is read more than it is written, how well do you think a colleague without previous knowledge of regexs could understand '^' vs 'start of line'?