<?php $data = "Ticket#999999 ticket#9";preg_match_all('/Ticket#([0-9]+)/i',$data,$matches, PREG_SET_ORDER);print_r($matches);
Standard input is empty
Array ( [0] => Array ( [0] => Ticket#999999 [1] => 999999 ) [1] => Array ( [0] => ticket#9 [1] => 9 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!