Launguage used PHP TimeString = 1500-1550
I want to use preg_replace to change the 1550 half of the string to 1530. I tried to use a pattern of (/d|/d/d)50 Where I am getting stuck is I don't know how to use the replacement feature to change any /d50 or /d/d50 to have a 30 suffix. I don't want to sue str replace in php as it will change the first time 1500 to 130 since the 50 matches. Any ideas?
\dinstead of/d?