[Solved] How to find any date format in a string [closed]
[ad_1] /\d{1,2}\/\d{1,2}\/(?:\d{2}){1,2} \d{1,2}:\d{2}(:?:\d{2})?/gm For a few pieces: \d{1,2} matches 1 or two digits. (?:\d{2}){1,2} matches a group of two digits once or twice. (therefore, 2 or 4 digits) (?:\d{2}:)? allows the seconds to be optional 2 [ad_2] solved How to find any date format in a string [closed]