Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expression problem

Status
Not open for further replies.

subok

MIS
Feb 21, 2005
37
BE
Hi,

I may sound very newbie, any help is much appreciated.
using regular expression (regex), the goal is to manipulate any line with :

<sel:479140109;phone-context=+11477>,<sip:479140109@sip-gam.com;user=phone>

to become :

<sip:479140109@sip-gam.com;user=phone>

Thanks

subok
 
You could use split function.

dmazzini
GSM/UMTS System and Telecomm Consultant

 
s/^[^,]+,(.*)$/$1/;

or use split() as already suggested.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top