You can use:
\b((1[0-2]|0?[1-9]):([0-5][0-9]) ([AaPp][Mm]))
EDIT: ^ changed this from "0" to "1" to not accept 00:00
More Related Contents:
- Regex to validate date formats dd/mm/YYYY, dd-mm-YYYY, dd.mm.YYYY, dd mmm YYYY, dd-mmm-YYYY, dd/mmm/YYYY, dd.mmm.YYYY with Leap Year Support
- Regular expression for floating point numbers
- RegEx for matching UK Postcodes
- Can’t escape the backslash with regex?
- Regex to match URL
- Regex (grep) for multi-line search needed [duplicate]
- Extracting a string between other two strings in R
- Regular expression for matching HH:MM time format
- What is the difference between square brackets and parentheses in a regex?
- isnumeric() with PostgreSQL
- How do I use regular expressions in bash scripts?
- Insert commas into number string
- Insert contents of a file after specific pattern match
- regex to match a word with unique (non-repeating) characters
- Is it possible to define a pattern and reuse it to capture multiple groups?
- How can I make my match non greedy in vim?
- Regular expression to match last number in a string
- What are the differences between glob-style patterns and regular expressions?
- Regex for comments in strings, strings in comments, etc
- Matching math expression with regular expression?
- How do I handle special characters in a Perl regex?
- Can a URL contain a semicolon and still be valid?
- Regular expression to extract whole sentences with matching word
- Case insensitive search in Mongo
- Find all string matches with Regex golang
- Replace with whole match value using Notepad++ regex search and replace
- Design DFA accepting binary strings divisible by a number ‘n’
- Regex matching beginning AND end strings
- Regex return file name, remove path and file extension
- Matching url with array list of words in AngularJS ui-router