mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
19 lines
331 B
Plaintext
19 lines
331 B
Plaintext
|
--TEST--
|
||
|
Test Regular expression register support in ereg
|
||
|
--FILE--
|
||
|
<?php $a="This is a nice and simple string";
|
||
|
echo ereg(".*(is).*(is).*",$a,$registers);
|
||
|
echo "\n";
|
||
|
echo $registers[0];
|
||
|
echo "\n";
|
||
|
echo $registers[1];
|
||
|
echo "\n";
|
||
|
echo $registers[2];
|
||
|
echo "\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
32
|
||
|
This is a nice and simple string
|
||
|
is
|
||
|
is
|