An Introduction to Regular Expressions The Match Operator 27 of 50 : [PREV] [NEXT]

The /i Modifier

The following pattern matches both "javascript" and "JavaScript":

/JavaScript/i

The /i modifier instructs the Engine to perform case-insensitive pattern matching, so the case of alphabetic characters doesn't matter.


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