Test, validate and match regular expressions
This multiline regex validates numeric strings on each line, matching signed integers and decimals like '-123.45' or '+7', dot-leading fractions like '.5', and scientific notation such as '1.5e-10' or '-2E+3'. Note that the lazy quantifiers paired with the anchors behave like greedy ones, so validation works but with unnecessary backtracking. Useful for line-by-line number validation in text inputs or log parsing.