a better quoted literals regex with non-consuming boundary mathing
minor reformatting
removed multiline regex flag, more minor reformatting