Changed regex pattern to multiline