Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update and clarify grep regex usage in 05.Rmd #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lmanc
Copy link

@lmanc lmanc commented Oct 31, 2023

  • Corrected the initial note about the necessity of the -E option in grep. The original note suggested that without -E, grep would treat patterns as literal strings, which is wrong.
  • Added brief explanations differentiating between Extended Regular Expressions (EREs) and Basic Regular Expressions (BREs). By default, grep operates with BRE, but with the -E flag, it switches to using ERE.
  • Provided an example of how to achieve equivalent results using BRE with the -G flag.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant