Back to index

php5  5.3.10
regular_expressions.inc
Go to the documentation of this file.
00001 <?php
00002 
00007 $expressions = array(
00008   //array(pattern, string to match)
00009     array('..(a|b|c)(a|b|c)..', '--- ab ---'),
00010     array('()', ''),
00011     array('()', 'abcdef'),
00012     array('[x]|[^x]', 'abcdef'),
00013     array('(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)', '--- aaa bbb ccc ddd ---'),
00014     array('\\\\\`\^\.\[\$\(\)\|\*\+\?\{\\\'', '\\`^.[$()|*+?{\''),
00015     array('\\a', 'a'),
00016     array('[0-9][^0-9]', '2a'),
00017     array('^[[:alnum:]]{62,62}$', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'),
00018     array('^[[:digit:]]{5}', '0123456789'),
00019        array('[[:digit:]]{5}$', '0123456789'),
00020        array('[[:blank:]]{1,10}', "\n \t"),
00021        array('[[:print:]]{3}', " a "),
00022 );
00023 
00024 ?>