Previous

Next


02. Two rules

  • There are two important rules that you need to know about how a regex matches. They are:
    1. The first, or earliest, match wins
    2. Quantifiers are greedy
  • So what do these actually mean?

Previous

Next

Andrew Hill

For LinuxSA Meeting, 17 April 2001