how to check whether any special character is present in a particular string
<p>I want to remove the '&lt;' '>' from the string so i used the script </p>

<pre><code>&lt;html&gt;
&lt;body&gt;

 &lt;script&gt;
  var f = ((/(&lt;script&gt;)/i).exec("hello&lt;") != null);
  alert("ok"+f);

  document.write("&lt;br&gt;Value:" +f);

 &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>But i'm getting the variant f value as null..</p>

<p>Could you please help me.if there is any issue with the code.</p>
