Soem languages (e.g. Ruby) support named captures in regexes. It would be nice to label those captures in the diagram instead of "capture x". The syntax in ruby is:
/(?<name>pattern)/
This matches pattern and captures it in a named group for easier referencing. Named captures are exclusive with numbered ones, so there's no need to show the number if we detect named captures.
Soem languages (e.g. Ruby) support named captures in regexes. It would be nice to label those captures in the diagram instead of "capture x". The syntax in ruby is:
This matches pattern and captures it in a named group for easier referencing. Named captures are exclusive with numbered ones, so there's no need to show the number if we detect named captures.