Acme Packet (MOSC)

MOSC Banner

Modifying request-uri that can contain prefixes

edited Jun 28, 2013 2:00PM in Acme Packet (MOSC) 4 commentsAnswered

Hello,

 

I am working on an HMR expression that reads a line till it finds a '+' and replaces it with '00', due to the number sometimes containing a variable length prefix this "+" can be either in the middle of the URI or at the beginning.

 

I have a working solution for when it is after the first 6 digits (a fixed length prefix), however this breaks when the "+" is at the beginning or the prefix changes length.

 

Ideally I would like some way of "searching" for the "+" symbol and saving the part before it and after it, then summing the result with the "00" inbetween. I also have issues with this prefix being added to anonymous URIs so the rule would need to be able to detect when this occurs and leave "anonymous" alone.

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