regex pattern needs improvement - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: regex pattern needs improvement (/showthread.php?tid=65442) |
regex pattern needs improvement - cupboy - 06-12-2016 I would like to use one pattern that handles having a date in the subject and not having a date in the subject. Can't get it to work both ways. Also the 9 digit number appears twice, which is quite a mystery to me. Code: $subject = " DRUG COURT REVIEW S18 151905861 State Felony"; |