|
home—lects—exams—hws
breeze (snow day)
echo preg_match( '/row/', 'How now, brown cow?' ); echo preg_match( '/.ow/', 'How now, brown cow?' ); echo preg_match( '/n[oe]w/', 'How now, brown cow?' ); echo preg_match( '/rows?/', 'How now, brown cow, eh?' ); echo preg_match( '/rows?/', 'How now, brown cows, eh?' ); echo preg_match( '/rows?/', 'How now, brown cowss, eh?' ); echo preg_match_all( '/ow/', 'How now, brown cow?' ); echo preg_match_all( '/rows?/', '\"How now, brown cow?\", he crows.' ); echo preg_match( '/[0-9]*/', '00047' ); echo preg_match( '/\\d*/', '00047' ); echo preg_match( '/[0-9]+/', '00047' ); |
Note: the name “
NOTE:
No trailing “
(There are other trailing modifiers however —
e.g. i for case-insensitive,
and more.
Warning:
home—lects—exams—hws
breeze (snow day)
©2011, Ian Barland, Radford University Last modified 2011.Sep.23 (Fri) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |