fork(1) download
  1. <?php
  2.  
  3. $str = 'abcd,abed,abfd,abgd';
  4. echo preg_match("/ab.d/", $str, $match);
  5. print_r($match);
Success #stdin #stdout 0.02s 24192KB
stdin
Standard input is empty
stdout
1Array
(
    [0] => abcd
)