<div class="gmail_quote">On Mon, Jan 7, 2013 at 12:45 PM, Victor Chukalovskiy <span dir="ltr"><<a href="mailto:victor.chukalovskiy@gmail.com" target="_blank">victor.chukalovskiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Ken,<br>
<br>
Thank you very much for feedback. I'll then follow your regex
example to parse it.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Victor</font></span><div><div class="h5"><br>
<pre cols="72"></pre>
On 13-01-06 12:19 PM, Ken Rice wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<font face="Monaco, Courier New"><span style="font-size:11pt">You
have to parse out the NDPI and RN values...<br>
<br>
Just use a regex like
^(?:+1|1)?([2-9]\d{2}[2-9]\d{6});ndpi=(*.);rn=([2-9]\d{2}[2-9]\d{6})$<br>
That will get dialed digits in $1, ndpi value in $2, then LRN
in $3,<br>
<br></span></font></blockquote></div></div></div></blockquote><div>Just a quick FYI... be careful when you use .* because it will try to match EVERYTHING. Also, Ken accidentally typed (*.) which I'm sure wasn't what he was aiming for. ;)<br>
<br>Maybe this would be more effective:<br><font face="Monaco, Courier New"><span style="font-size:11pt">^(?:+1|1)?([2-9]\d{2}[2-9]\d{6});ndpi=(.*?);rn=([2-9]\d{2}[2-9]\d{6})$</span></font><br><br>-MC<br></div></div>