<?php 

var_dump(preg_match("/a.+?a/", 'aaa'));