title: URL Parsing in Kotlin using Regex
body: <p>How do I match secret_code_data in string:</p>
  
  <pre><code>xeno://soundcloud/?code=secret_code_data#
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>val regex = Regex("""xeno://soundcloud/?code=(.*?)#""")
  field = regex.find(url)?.value ?: ""
  </code></pre>
  
  <p>without luck. I suspect ? before code might be the problem, should I escape it somehow. Can you help?</p>