Timeline for Bash: Show the contents of a text file, with every occurrence of a word highlighted
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 26, 2017 at 18:46 | comment | added | Fox | BRE (as defined by the standard) are a subset of true regular expressions. The update and footnote are great in explaining that | |
Jan 26, 2017 at 18:42 | comment | added | Eliah Kagan |
@Fox That was unclear--thanks for noticing and drawing my attention to this. I've reworded and added an explanatory footnote. In addition to the syntax for alternation varying between dialects, my understanding is BRE--so far as it's formally defined--really doesn't have alternation. The \| syntax is allowed as a non-standard extension to BRE and widely implemented. Please let me know if you believe I'm mistaken on this or if the post remains unclear. (Of course, as you say, alternation is not a vendor-provided extension of ERE--every conforming ERE implementation must implement it.)
|
|
Jan 26, 2017 at 18:33 | history | edited | Eliah Kagan | CC BY-SA 3.0 |
clarified the situation with alternation in BRE, including a footnote about the standard; fixed potentially confusing "Also matching" wording
|
Jan 26, 2017 at 15:43 | history | edited | Eliah Kagan | CC BY-SA 3.0 |
added 185 characters in body; added 2 characters in body
|
Jan 26, 2017 at 15:36 | history | answered | Eliah Kagan | CC BY-SA 3.0 |