RegEx for uri-display truncating
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 ?