specify string start with \A, end with \z to capture trailing line break and then be able use /m modifier (/x does not harm either)