Acme Packet (MOSC)

MOSC Banner

RegEx for uri-display truncating

edited Jul 31, 2014 10:11AM in Acme Packet (MOSC) 8 commentsAnswered

Hi community,

Wonder if you could help me with a RegEx query. I have a possible skeleton HMR (below) in order to

  • Check the uri-display field in the From header
  • If you get an 8 digit number starting with a 7 in double quotes then change the uri-display value to just be the last 5 digits of this number in double quotes
  • If you get anything else, then just leave alone

 

Some examples:

 

"71212345" needs to be changed to "12345"

"74546134" needs to be changed to "46134"

"John Smith" needs to be left alone

 

Can anyone either suggest some possible RegEx to test that would do this, or else an alternative HMR that would perform the same function ?

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