in reply to Matching a regex in a line

This is one way to print 10 (or more) consecutive "goku" in a line:
while (<DATA>) { print if /(?:goku){10}/i; } __DATA__ 1 gokugokugokugokugokugokugokugokugokugoku 2 gokugokugokugokugokugoku foo

Replies are listed 'Best First'.
Re^2: Matching a regex in a line
by The_Last_Monk (Novice) on Feb 16, 2015 at 00:12 UTC
    You, sir, are a legend!