Inline scala and js regexes