apatrida
05/24/2017, 2:00 AM""" tripple quote strings so you don't have to escape regex symbols. And toRegex() that string. When doing that in Intellij IDEA it will detect the Regex and show you errors in the editor. For example:
val myRegex = """([A-Z])\w+""".toRegex()