[source, php]
----
preg_match("/(a(?=b)/", $str);
----
