Proposal: Standardise references to Regular Expressions as "regex".
Closed this issue · 5 comments
In thread in #17208, @Managor brought up the good argument that we should standardise references to Regular Expresisons. Per data shared by @dmmqz, it looks like:
At the moment "regex" and "regular expression" is the most used (94 and 98 occurrences respectively). "Regex" appears once and "REGEX" twice.
Accordingly, I propose we use regex universally and define this in the style guide. I can update the style guide if we move forward with this as well as go through our content and fix instances of "regular expression", "Regex", and "REGEX", and this is also a good first issue style effort.
I think "regex" and "regular expression" are both fine. If we are only going to use one, I would choose "regex".
Regular expression in plain language doesn't really say anything to a new user. To them it's the same meaningless jargon as "regex" so I see no downside in using shortform. My question is should we use "Regex" as a word or regex as technical wording.
I would vote for regex - if you're concerned with what regex is in the context of a command, chances are you're already in deep enough to know what it is. I know that's an assumption on my part, but it feels right to make it standard as a technical term.
@KristopherLeads Can you make PR that adds this note to the style guide?
@KristopherLeads Can you make PR that adds this note to the style guide?
See #17266. I didn't see a standard references section, so I added a table that can be expanded at a later date.