Test, validate and match regular expressions
This regular expression matches floating-point numbers, including those with scientific notation (using a lowercase 'e'). It accommodates optional positive or negative signs at the beginning, various decimal formats (like '1.', '.5', or '1.5'), and optional exponents. Using the global and multiline flags, it is highly effective for extracting or validating all numerical values from scientific data logs or configuration files.