<?php $page = "test123";if (preg_match("/test(\d*)/i", $page)) {echo "ЕСТЬ $1";} else {echo "НЕТ";}
Standard input is empty
ЕСТЬ $1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!