Regex/Grep

Wildcards

You can replace parts of words with wildcards matching one, multiple, or a range of characters:
? Matches exactly one character.
*: Matches none, one, or multiple characters.
[a-b]: Matches one character of the range “a” through “b”.
[abc…] or [a|b|c|…]: Matches one character out of the given list of characters.
[^…]: Matches one character that is not contained in the given list or range.

Useful Regex expressions


Words in the latin alphabet

  • \b assert position at a word boundary
  • A-Z a single character in the range between A and Z (case sensitive)
  • a-z a single character in the range between a and z (case sensitive)
  • + Quantifier: matches between one and unlimited times, as many times as possible, giving back as needed
  • \b assert position at a word boundary

Words in greek



Page numbering