On Mon, Jan 7, 2013 at 12:45 PM, Victor Chukalovskiy <victor.chukalovskiy@gmail.com> wrote:
Ken,

Thank you very much for feedback. I'll then follow your regex example to parse it.

-Victor


      On 13-01-06 12:19 PM, Ken Rice wrote:
You have to parse out the NDPI and RN values...

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})$
That will get dialed digits in $1, ndpi value in $2, then LRN in $3,

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. ;)

Maybe this would be more effective:
^(?:+1|1)?([2-9]\d{2}[2-9]\d{6});ndpi=(.*?);rn=([2-9]\d{2}[2-9]\d{6})$

-MC