GroupType.noneCapturing constructor
const
GroupType.noneCapturing()
Used when the found value does not need to be captured
Example: var regex = FluentRegex().literal('a').group( FluentRegex().literal('bc'), type: GroupType.noneCapturing(), quantity: Quantity.exactly(2), ); expect(regex.hasMatch('abc'), false); expect(regex.hasMatch('abcbc'), true); expect(regex.findCapturedGroups('abcbc').length, 0);
Implementation
const GroupType.noneCapturing() : _expression = '?:';