Let's say, Message1 = your bill of amount 121.0 is due on 15 Feb., Similarly Message2 = bill amt 234.0 due on 11 Jun and so on. I want to extract bill amount and due date from similar messages. One way is to write a regular expression for every possible format. But that won't be able to handle new formats.
What is the Machine Learning approach to solve this? How do I train a model and use it to extract amount, due date from newer messages?