Extract date regex

Viewed 27

i have an string, and i want to extract complete date such as year, month, day, HH:MM:SS

my string : "<190>Aug 23 19:02:09 front.site.com nginx: "

i want to get 2022-08-23 19:02:09 value for return

0 Answers
Related