<?php$re1 = "/(?>a.*?a\d+)/";$re2 = "/(?>a.*a\d+)/";$text = "....a..a1....a1";preg_match_all( $re1, $text, $res1 );preg_match_all( $re2, $text, $res2 );var_dump( $res1 );var_dump( $res2 );
Standard input is empty
array(1) { [0]=> array(1) { [0]=> string(5) "a..a1" } } array(1) { [0]=> array(1) { [0]=> string(11) "a..a1....a1" } }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!