Captures the individual elements of a numeric string. Commas and underscores are allowed
as separators, as long as they appear between digits and are not consecutive.
Capture groups:
#
Description
Example(s)
0
entire string
"2 1/3" from "2 1/3"
1
"negative" dash
"-" from "-2 1/3"
2
whole number or numerator
"2" from "2 1/3"; "1" from "1/3"
3
entire fraction, decimal portion, or denominator
" 1/3" from "2 1/3"; ".33" from "2.33"; "/3" from "1/3"
Capture group 2 may include comma/underscore separators.
Captures the individual elements of a numeric string. Commas and underscores are allowed as separators, as long as they appear between digits and are not consecutive.
Capture groups:
0"2 1/3"from"2 1/3"1"-"from"-2 1/3"2"2"from"2 1/3";"1"from"1/3"3" 1/3"from"2 1/3";".33"from"2.33";"/3"from"1/3"Capture group 2 may include comma/underscore separators.