Your browser does not allow storing cookies. We recommend enabling them.


Egrep Patterns

The escape character is a backslash (\). You can use it to escape meta characters to use them in their plain character form.

In the following examples literal 'E' and 'F' denote any expression, whether a pattern or a character.


Start a capturing subexpression.


End a capturing subexpression.


Disjunction, match either E or F (inclusive). E is preferred if both match.


Act as Kleene star, match E zero or more times.


Closure, match E one or more times.


Option, match E optionally once.


Match any character except for newline characters (\n, \f, \r) and the NULL byte.


Match E exactly n times.

E{n,} or E{n,0}

Match E n or more times.

E{,n} or E{0,n}

Match E at most n times.


Match E no less than n times and no more than m times.


Start a character set, see Character Sets For Egrep.


Match the empty string at the end of the input or at the end of a line.


Match the empty string at the start of the input or at the beginning of a line.


Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more