The Late Fee number is any integer and the Date will always be in that format.
Thanks in advance.
The Late Fee number is any integer and the Date will always be in that format.
Thanks in advance.
late fee \d+ on \d{2}\/\d{2}\/\d{4}
I always try mine out on http://regexper.com/
If you want to pick up the month, day, and year separately:
"^Late Fee (\d+) on (\d\d)/(\d\d)/(\d\d)$"
If you just want to pick up the date as a unit:
"^Late Fee (\d+) on (\d\d/\d\d/\d\d)$"
Late Fee \d+ on (0?[1-9]|1[0-2])/(0?[1-9]|[12][0-9]|3[01])/(19|20)\d\d
If the month and day could be 1 or 2 digits try this:
Late Fee \d+ on \d{1,2}\/\d{1,2}\/\d{4}