Test, validate and match regular expressions
This regex extracts the payment deadline for a capital contribution by looking for the phrase "your capital contribution is due on or before" followed by a date ending in a year between 2010 and 2099. Using the DOTALL modifier, it captures everything up to that year, making it robust for multiline text. It is particularly useful for parsing legal and financial documents, such as private equity fund agreements, to automate due date extraction.