findFileOffsetByPattern can limit range