I have a string like:
Today, 3:30pm - Group Meeting to discuss "big idea"
How do you construct a regex such that after parsing it would return:
Today 3:30pm Group Meeting to discuss big idea
I would like it to remove all non-alphanumeric characters except for those that appear in a 12 or 24 hour time stamp.
A colon must be preceded by at least one digit and followed by at least two digits: then it’s a time. All other colons will be considered textual colons.
How it works
Then when applied to this silly text:
…changes it into: