I believe it depends on how you call it. For examp...
# announcements
r
I believe it depends on how you call it. For example, if you have something like
fun doStuff(value: String) = value.matches(Regex("[a-zA-Z0-9]+"))
, the regex gets recompiled every time the method is called.