Use group() and split() more efficiently
Optimize group()
and/or split()
function:
- using
group(0)
only is suboptimal (group()
makes more sense if you are also interested in the other matches (group(1), ...
)) -
group(0)
and thensplit()
seems to be inefficient