You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing text[group(m, x)] for both empty-match/non-match returns an empty string. The current way to check if group(m, x) matched is to do group(m, x) != reNonCapture. I think it would be better to provide a captured(m, x) API which internally just does group(m, x) != reNonCapture.
There is probably a better API name. Maybe wasCaptured
The text was updated successfully, but these errors were encountered:
Doing
text[group(m, x)]
for both empty-match/non-match returns an empty string. The current way to check ifgroup(m, x)
matched is to dogroup(m, x) != reNonCapture
. I think it would be better to provide acaptured(m, x)
API which internally just doesgroup(m, x) != reNonCapture
.There is probably a better API name. Maybe
wasCaptured
The text was updated successfully, but these errors were encountered: