-1

The Late Fee number is any integer and the Date will always be in that format.

Thanks in advance.

mutant_city
  • 1,783
  • 21
  • 38

4 Answers4

2
late fee \d+ on \d{2}\/\d{2}\/\d{4}

I always try mine out on http://regexper.com/

Digits
  • 2,304
  • 2
  • 10
  • 22
1

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)$"
Sniggerfardimungus
  • 10,708
  • 10
  • 46
  • 91
1
Late Fee \d+ on (0?[1-9]|1[0-2])/(0?[1-9]|[12][0-9]|3[01])/(19|20)\d\d
Julien Spronck
  • 12,917
  • 2
  • 35
  • 45
1

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}
John McMahon
  • 1,567
  • 1
  • 15
  • 21