<?php $str = 'abcd,abed,abfd,abgd';echo preg_match("/ab.d/", $str, $match);print_r($match);
Standard input is empty
1Array ( [0] => abcd )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!