03-06-2013 12:08 PM - edited 03-16-2019 04:06 PM
I'm missing something here. I'm trying to create a rule that matches any number that starts with star followed by 7 digits and add a 1937 after the star.
I have the following. But it's just replacing the whole number. How do I correct this?
voice translation-rule 10001
rule 1 /^\*.......$/ /*1937/
ISR2901#test voice translation-rule 10001 *9999999
Matched with rule 3
Original number: *9999999 Translated number: *1937
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Solved! Go to Solution.
03-06-2013 12:18 PM
* is a wild card, to use it as a character you need to do something like this:
rule 1 /^\(\*\)\(.......\)/ /\1/1937\2/
You may need to tweak it slightly.
HTH,
Chris
03-06-2013 12:18 PM
* is a wild card, to use it as a character you need to do something like this:
rule 1 /^\(\*\)\(.......\)/ /\1/1937\2/
You may need to tweak it slightly.
HTH,
Chris
03-06-2013 01:23 PM
Thanks! this helped
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide