Java regex help (splitting strings)

Associate
Joined
19 Jun 2006
Posts
162
Location
Swansea, Wales
Hi people,

I want to split up a string and I think regex is probably the best way to do it but not sure and would like some help.

The string is an SDP media attribute [link] and i need to get the port number so if i have the following string...

m=audio6000RTP/AVP0

I want to get the "6000" bit. The number following m=audio will always be the port number so i just to to look character by character after m=audio for numbers 0-9 until i find a letter a-z.

Ideas? :confused:
 
Back
Top Bottom