I'm not sure I get your point. Without the /g modifier the only number of matches possible are 0 and 1, and so that's what $regex/$regsub return.