<?php $tuple = "(12342,43244)";if (preg_match('~\(([0-9]+)~', $tuple, $m)){ echo $m[1];}
Standard input is empty
12342
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!