fork download
  1. <?php
  2.  
  3. $pattern = '/form_[0-9]+\/display/';
  4. $field = 'form_157/display';
  5.  
  6. echo preg_match($pattern, $field) ? "Co" : "Ko";
Success #stdin #stdout 0.02s 26000KB
stdin
Standard input is empty
stdout
Co