4 ms·
No I dont want to capture anything, I just want to match a string that contains Tarzan but not "Tarzan". Your example seems to match both both. Is that too much
by smegel 11y ago
No I dont want to capture anything, I just want to match a string that contains Tarzan but not "Tarzan". Your example seems to match both
both. Is that too much to ask?
- jameshart 11y agoNo, it's not. Just run through the matches returned by this regex, and reject the ones which don't have a captured group. Done. Did you want a more complex solution?