(?s) - see [Ovid]'s answer ^ - beginning of string .{0,1100} - between 0 and 1100 characters $ end of string