News for hackers. Stuff that matters.
Re:Learn Regex the Easy Way by jwilk on Thursday August 10, 2017 @10:24AM (#14979976)
The name "grep" is unrelated to GNU. According to The Jargon File, the etymology is:

from the qed/ed editor idiom g/re/p, where re stands for a regular expression, to Globally search for the Regular Expression and Print the lines containing matches to it

In fact, grep predates the GNU project by almost a decade.

Also, it's the first time I hear about "GNU" regexps.

Re:Learn Regex the Easy Way by sglane on Thursday August 10, 2017 @11:01AM (#14980382)
Thanks, just learned something new. grep predates GNU by about a decade it seems.
Re:Learn Regex the Easy Way by Hello71 on Thursday August 10, 2017 @12:08PM (#14981069)
a more accurate term would be "BRE with GNU extensions", e.g. \(\)
Re:Learn Regex the Easy Way by jwilk on Thursday August 10, 2017 @12:57PM (#14981683)
\(\) are part of BRE syntax. They are not GNU extensions.

Source: http://pubs.opengroup.org/onlinepubs/7908799/xbd/re.html#tag...

Re:Learn Regex the Easy Way by Hello71 on Thursday August 10, 2017 @02:03PM (#14982383)
er, I meant \{\}.
Re:Learn Regex the Easy Way by jwilk on Thursday August 10, 2017 @02:12PM (#14982482)
\{n\}, \{n,\} and \{n,m\} are all in POSIX.

\{,m\} is a (pretty obscure) GNU extensions.

Re:Learn Regex the Easy Way by Hello71 on Thursday August 10, 2017 @05:35PM (#14984541)
hm, I could've sworn it wasn't. http://www.regular-expressions.info/gnu.html says that \?, \+, and \| are GNU extensions though.