| An Introduction to Regular Expressions | The Basics | 17 of 50 : [PREV] [NEXT] |
Standard Meta CharactersAlternation (continued)You can group various sorts with parentheses, as in the following expression:
A common mistake is to forget the parentheses:
Unlike the previous pattern, this one matches the followings strings, because "Simpson" belongs only to "Maggie":
but it does not match the string "Maggie". |
| © 2003 Barbie barbie@missbarbell.co.uk | Home | http://birmingham.pm.org/ |