3 ms·
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 BD
by nailer 10y ago
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.
- pbhjpbhj 10y agoA really good shorthand for "start of line" is "^" ;o)
- nailer 10y agoA really good shorthand for "yes, however it's not the most discoverable thing in the world" is "& ^ ( ^ ^ % & ^"
- pbhjpbhj 10y agoIs 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.
- nailer 10y agoSince 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'?