Fix line number for regex reference