Test, validate and match regular expressions
Matches a floating-point number (with optional decimal part) followed by the letter 'M' at the beginning of a string. Useful for parsing values like '10M' or '2.5M' which could represent megabytes, millions, or other units with an M identifier.