First page Back Continue Last page Graphics
Regular Expressions (RE)
At its most basic, a regex pattern is a sequence of characters that matches the item being compared:
Pattern: flower
Match: flower
And nothing else!
A key thing to remember is that a Regular Expression will try to match the first and the longest string of characters that match the pattern. This will sometimes give you a surprising result, one you didn’t expect!