xref: /PHP-5.3/ext/ereg/tests/005.phpt (revision 1881091e)
1--TEST--
2Test Regular expression register support in ereg
3--FILE--
4<?php $a="This is a nice and simple string";
5  echo ereg(".*(is).*(is).*",$a,$registers);
6  echo "\n";
7  echo $registers[0];
8  echo "\n";
9  echo $registers[1];
10  echo "\n";
11  echo $registers[2];
12  echo "\n";
13?>
14--EXPECTF--
15Deprecated: Function ereg() is deprecated in %s on line %d
1632
17This is a nice and simple string
18is
19is
20