<?php $t='asstextssa'; var_dump(preg_match_all('/ass(.*?)ssa/s',$t,$match)); var_dump($match);
Standard input is empty
int(1) array(2) { [0]=> array(1) { [0]=> string(12) "ass text ssa" } [1]=> array(1) { [0]=> string(6) " text " } }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!