An Introduction to Regular Expressions The Basics 7 of 50 : [PREV] [NEXT]

Simple matching

Most characters in a regular expression simply match themselves. If you string several characters in a row, they must match in order. So, if you write the pattern:

/Bart/

it won't match unless the string contains the substring "Bart" somewhere.


© 2003 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/