<div dir="ltr">Hi<div>Thanks, what I actually need is keep numbers and * and # and remove the rest, something like </div><div><br></div><div><div>                $rU = $(rU{re.subst,/![0-9*#]//g});</div><div><br></div><div>

But I am not sure that ! works for negation.</div><div><br>Regards</div><br><div class="gmail_quote">On Mon, Feb 11, 2013 at 5:43 PM, Daniel Tryba <span dir="ltr">&lt;<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Monday 11 February 2013 11:24:36 Ali Jawad wrote:<br>
&gt; I am using the below to strip &quot;-&quot; from destination numbers, it does work<br>
&gt; just fine &quot;I replace - with nothing&quot;, what i need to do now is to strip all<br>
&gt; characters except 0-9 * and #. Is there anyway to do it using the following<br>
&gt; configuration part<br>
<br>
</div>You are using regular expression substitution, so yes this can be done:<br>
/[^0-9*#]//g<br>
<br>
Take a look at <a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">http://en.wikipedia.org/wiki/Regular_expression</a><br>
for more info.<br>
</blockquote></div><br><br clear="all"><div><br></div><div dir="ltr"><div><div><font><font color="#888888"><b><br></b></font></font><div><div></div></div></div></div></div>
</div></div>