Match Pattern Regular Expression Help Request

I need to figure out how to write the regular expression for the following example.

Sep 21, Thursday, 6:00PM,

Please note that the Month, Date, Day, and Time will change but will remain in the same format.

I need it similar to this Date example:

. Extracting Dates in YYYY-MM-DD Format

Pattern: (\d{4}-\d{2}-\d{2})

Thanks in advance

Hi Brian,

something like this should work:

\b([A-Z][a-z]{2})\s(\d{1,2}),\s([A-Za-z]+),\s(\d{1,2}:\d{2}(?:AM|PM))\b

You can experiment with different regular expressions here: https://regex101.com/

1 Like

Much appreciated. I will check out the link, too.