in reply to looking for string in file and trying to print

Put the gisx at the end of the regex

m/ ( .{0,25} $string.{0,25} ) /gisx
poj