3 ms·
Good to see the term "regexp" (with a "p") in use. I always used to call it that, then at some point realized everyone was writing "regex", and wondered if I'd
by adrianmsmith 4y ago
Good to see the term "regexp" (with a "p") in use. I always used to call it that, then at some point realized everyone was writing "regex", and wondered if I'd spelled the abbreviation wrong the whole time. I guess it's just a function of time, it used to be spelled with a "p" and now mostly isn't.
- lupire 4y agoRegexp has been dying for decades https://trends.google.com/trends/explore?date=all&geo=US&q=Regexp,Regex,regexpr https://trends.google.com/trends/explore?date=all&geo=US&q=R...
- smcl 4y agoI ended up learning it the same, possibly from the Camel Book? One thing I noticed when I wasn't coding alone in my bedroom and had to actually talk to other coders was that "regex" is more natural to say than "regexp", so that might explain why it became the preferred spelling.
- rob74 4y agoGuess that time favors shorter abbreviations. I prefer "rex" myself (at least as a variable name for a regex object).
- IshKebab 4y agoProbably because "regex" is much easier to say and looks much more like a real word than "regexp". Like "latex" or "codex". Nothing ends in "exp".