Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
fdgram4798yYes, the regex is more clear, in the same sense that a picture is worth a thousand words. -
Voxera108838yI dont se a problem with either.
The regex is quite straight forward, first char has to be a letter or an underscore or any ascii char number 127-255
From second also numbers are valid.
Start using look behind and look ahead and it starts to be interesting ;)
On the other hand, I have hand coded a few lexer/parsers so the concept is very familiar. -
Voxera108838y@Ashkin I agree. Even if a sentence should end in some punctuation, I would prefer to have some clear separation since a dot is a valid part of a regex and anyone copying risk getting a regex that eats one char to much ;)
Related Rants

The only expressions devs have
He's got a valid point
How to break a chatbot (well done).
I wonder if there is anyone who would find more clarity in the regex than the English.
undefined
regex