I have a regex that can detect times format like 19:00 PST, But based on my regex 2021 PST is detected as a time. I don't wanna detect a date as a time. Here is my regex:
( |^|)\d{1,2}(?:[.:](\d\d))*\s*([aApP][.: ]?[mM][.: ]?|o['’]clock|afternoon)*\s* PST
The detection result based on regex101 is here:
How can I change this regex to detect 12 PST after bar12PST but not detect 2021 PST as a time?
Regext Link :https://regex101.com/r/zy193H/1/
