title: PatternSyntaxException in java
body: <p>i am trying to replace the below with ""(Null)</p>
  
  <pre><code>java.util.regex.PatternSyntaxException: Syntax error U_REGEX_BAD_INTERVAL near index 50:
  
  01-05 14:11:14.660: E/AndroidRuntime(1546): FATAL EXCEPTION: main
  01-05 14:11:14.660: E/AndroidRuntime(1546): java.util.regex.PatternSyntaxException: Syntax error U_REGEX_BAD_INTERVAL near index 50:
  01-05 14:11:14.660: E/AndroidRuntime(1546): &lt;html&gt;&lt;head&gt;  &lt;style type="text/css"&gt;@font-face { font-family: MyCustomFont;  src: url("file:///android_asset/fonts/MyriadPro-Regular.otf") }body { font-family: MyCustomFont; font-size:14.0pt; text-align: center;vertical-align:middle;line-height: normal;} &lt;/style&gt; &lt;/head&gt;&lt;body&gt;
  </code></pre>
  
  <p>i am geting this error what is the problem here?    </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>this is my code</p>
  
  <p><code>"a"</code> contains the value with tags</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;  &lt;style type="text/css"&gt;@font-face { font-family: MyCustomFont;  src: 
  url("file:///android_asset/fonts/MyriadPro-Regular.otf") }body { font-family:MyCustomFont;
   font-size:14.0pt; text-align: center;vertical-align:middle;line-height: normal;}    &lt;/style&gt;
  &lt;/head&gt;&lt;body&gt;365&lt;i&gt;xy&lt;/i&gt;&lt;/body&gt;&lt;/html&gt;
  
  
  val =&lt;html&gt;&lt;head&gt;  &lt;style type=\"text/css\"&gt;"
          + "@font-face { font-family: MyCustomFont;  src: url(\"file:///android_asset/fonts/MyriadPro-Regular.otf\") }"
          + "body { font-family: MyCustomFont; font-size:"14.0pt"; text-align: center;vertical-align:middle;line-height: normal;}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;
  a.getText().replaceAll(val, "") 
  </code></pre>