title: "500 Internal Server Error" Apache notebook Zeppelin on Azure Hdinsight
body: <p>I'm trying to write a spark application(in scala) in Azure HDInsight to extract information from a log line using regular expression. 
  the regular expression is this:</p>
  
  <pre><code>val patt1="""(?:(\w+) (\w+) (\d+) (\d+):(\d+):(\S+)  (\w+) \[([^]]+)\]   \((.*)\) - \[(\w+)\](?:\[(\w+)\])?\[(\w+)\]\[(\w+)\]\[\w+\]\[([^]]+)\](?:.*\[(.+)\]}))""".r
  </code></pre>
  
  <p>The pattern is correct, because if I use Jupyter notebook, or work in local in eclipse everything works and I am able to extract the data from the logs.</p>
  
  <p>The problem is just when I try to use Zeppelin notebook instead of Jupyter when I write the patt1 as a string (without .r) give me this strange error:</p>
  
  <pre><code>500 Internal Server Error
  </code></pre>
  
  <p>I also tried to import scala.util.matching.Regex before to build the regex but the error is the same. I think there is something in the triple quote or in the format that zeppelin doesn't allow, but I can't understand what. Can anyone help me, please? I want to use Zeppelin instead of Jupyter because I think give better visualization of sparksql queries.</p>
  
  <p>But if i try to write a simple pattern as <code>patt= """abc.*""".r</code> there is no error.</p>
  
  <p>EDIT:i tried several time to write regular expression in Zeppelin and it seems that the problem is with capturing groups as (\d) (\w) etc. Zeppelin scala interpret(Livy) don't take them.
  But the same identical regex works perfectly in jupyter.
  i'm new in scala and maybe i miss something very ease.Please help me</p>