What does “|” do in a regular expression?

What does “|” do in a regular expression?Category: Introduction to Linux IAuthor "LinuxQuestions"What does “|” do in a regular expression?
Linux Questions Staff asked 1 year ago

What does “|” do in a regular expression?

  • Redirects input to the command
  • Redirects output from the command
  • Separates repetition modifiers
  • Separates alternative patterns that can be matches

About the author