Shell Components   «Prev 

Reviewing some Regular Expressions

Common Regular Expressions
Common Regular Expressions

  1. Matches the word VISA in any combination of upper and lowercase letters
  2. Matches both principle and principal (to catch misspelled words) as well as other words starting with princip and two more letters
  3. Matches a dollar sign followed by one digit
  4. Matches any word starting with Fig or fig
  5. Matching any word that starts with The and is the first word on a line
  6. Matches any word with an “a” before a “c” (and zero or more letters between them)
Bash shell does not support the +([0-9])-type regular expressions.