mmulti-line mode:^and$match begin/end line in addition to begin/end text (default false) slet.match\n(default false) Uungreedy: swap meaning ofx*andx*?,x+andx+?, etc (default false) Flag syntax isxyz(set) or-xyz(clear) orxy-z(setxy, clearz). ...
Dollar has no special meaning in a character class. The meaning of dollar can be changed so that it matches only at the very end of the string, by setting the dollar_endonly option at compile time. This does not affect the \Z assertion. The meanings of the circumflex and dollar ...