Rommel Rommel - 1 year ago 80
Python Question

Regex for this date format?

I searched and no one posted about this, Im kinda new with regex, but I want to learn more, so I need a regex search for this date format:

3-Jul-16 or 30-Jun-16
I want the regex to search any date format that can look like that.

Answer Source

Split the task into 3 parts. First, a number in the range of 1-31 (tutorial), then a list of possible values for the month, and then two numbers.


Regex101 Demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download