php regex remove few string from url : <p>Below is my code in javascript that remove special character using regex.</p>

<pre><code>var yourInput = "string here";
re = /[`~!@$%^&amp;*()+\=;'",.&lt;&gt;\{\}\[\]\\\/]/gi;
var isSplChar = re.test(yourInput);
if(isSplChar)
{
    var no_spl_char = yourInput.replace(/[`~!@$%^&amp;*()+\;'",.&lt;&gt;\{\}\[\]\\\/]/gi, '');
    $(this).val(no_spl_char);
}
</code></pre>

<p>i want similiar version for php i tried below code but i gives error </p>

<pre><code>$input_lines="string here";
preg_replace("/[`~!@$%^&amp;*()+\;'",.&lt;&gt;\{\}\[\]\\\/]/", "", $input_lines);
</code></pre>

<p>what am i missing </p>
