Test, validate and match regular expressions
This regex uses named capturing groups to split a line of text into two parts. The first group 'a' greedily matches everything up to the last decimal number on the line, which is captured by group 'b' anchored to the end of the string. It is typically used with multiline tabular data to isolate trailing numeric values so that a delimiter or empty column can be inserted during a replacement operation.