News for hackers. Stuff that matters.
Re:Word usage guidance and alternative terms by omega3 on Monday April 19, 2021 @04:43AM (#26860363)
Some of them are baffling.

regex - Don't use. Instead, use regular expression

Re:Word usage guidance and alternative terms by nickysielicki on Monday April 19, 2021 @05:00AM (#26860495)
This is further complicated by the fact that “regular expression” typically refers to the more academic form of regular expressions (eg: regular languages), whereas “regex” tends to refer to the extended PCRE-style regexs with various non-regular features.
Re:Word usage guidance and alternative terms by pseudalopex on Monday April 19, 2021 @05:15AM (#26860616)
They're synonyms typically. Put both in a search engine if you don't think so.

PCRE even stands for Perl compatible regular expressions.

Re:Word usage guidance and alternative terms by nickysielicki on Monday April 19, 2021 @05:21AM (#26860662)
I’m not at all the first person to make a distinction between “regex” and “regular expression”. (First result on google for “regex vs regular expression”)

https://www.rexegg.com/regex-vs-regular-expression.html

> Perl had a huge influence on the flavors of regular expressions used in most modern engines today. This is why modern regular expressions are often called Perl-style. The differences in features across regex engines are considerable, so in my view speaking of Perl-style regular expressions only makes sense when one wants to make it clear one is not talking about the ivory tower brand of mathematically-correct expressions.

> But if you really want to avoid ambiguity, just say regex, as that is one word that white-coat computer scientists are not claiming.

Re:Word usage guidance and alternative terms by pseudalopex on Monday April 19, 2021 @05:33AM (#26860739)
No one said you were the first. And obviously adding vs changes the results.

Your own source says "This is why a small minority of people today (most of whom have email addresses ending with .edu) will maintain that what we call regex are not regular expressions. For the rest of us… Regex and regular expressions? Same-same."

Re:Word usage guidance and alternative terms by nickysielicki on Monday April 19, 2021 @05:38AM (#26860779)
... uh, right. Which is what I said in my top comment in this thread... Which you replied to, and called me out for having made a distinction where you thought one didn’t exist.

Huh?

Re:Word usage guidance and alternative terms by pseudalopex on Monday April 19, 2021 @05:45AM (#26860829)
You said typical usage distinguishes between regular expression and regex. Your source says it doesn't.
Re:Word usage guidance and alternative terms by BlueParanoia on Monday April 19, 2021 @05:07AM (#26860561)
This is a style guide, not a word blacklist. They suggest not using regex because it's not as clear, especially to thought who never learned what regex is, as regular expression.
Re:Word usage guidance and alternative terms by omega3 on Monday April 19, 2021 @05:22AM (#26860670)
I think the reverse is actually true, more people know what regex is than what it stands for (especially if their first language isn't English).

https://trends.google.com/trends/explore?geo=US&q=regex,regu...

Re:Word usage guidance and alternative terms by kevincox on Monday April 19, 2021 @09:38AM (#26862607)
Exactly. Some acronyms are more commonly known than their "expanded" form making the former the better name to use. For example I don't see many people spelling out Hyper-Text Transport Protocol.
Re:Word usage guidance and alternative terms by blackshaw on Monday April 19, 2021 @10:34AM (#26863177)
How could anyone with more than 5 minutes experience as a software developer possibly not know what a "regex" is?
Re:Word usage guidance and alternative terms by josteink on Monday April 19, 2021 @05:14AM (#26860612)
> This is a style guide, not a word blacklist.

You're not allowed to say that :D