The custom regexes follow the rules described in the Java Pattern class: Pattern Documentation. Multi-line regexes aren't supported.