if (/^foo (?=.*bar$)/g) { @matches = /\Gm (\d+) /g; }