Acme Packet (MOSC)

MOSC Banner

regex getting number from a string

edited Jan 23, 2014 8:39AM in Acme Packet (MOSC) 2 commentsAnswered

Hello,

 

I need help to make some regex.

I have header as below:

 

User-to-User: 04C80B2A21353837373030313031FA08000100A652D7EF78;encoding=hex

 

Digits marked by red is the telephone number which I need to get from these header and put it to From header. Of course this number can be different (only prefix 58770 is constant).

Also in this string constant is 04C80B2A213 and FA08000100A.

How should regex looks like to get this number from the string?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center