正则表达式 如何替代 mm/dd/yy hh:mm:ss
请教问题谢谢 本帖最后由 wisly 于 2009-10-28 17:11 编辑只有合法的字串才会被替换$string = "sdfsdf abc02/01/09 23:45:34abc sdfdsdf 12/31/88 12:04:44 dcsd 21-34-30 24:00:00 dasda"
$replacestr = "11/11/11 11:11:11"
MsgBox (0,'','oldstr='&$string&@LF&'newstr='&StringRegExpReplace($string, '(\b(0|1)/(0||3)/{2} (|2)(:){2}\b)', $replacestr))
页:
[1]