03-19-2014 08:44 AM - edited 03-16-2019 10:10 PM
Hello,
I have a translation rule where I'm attempting to replace a called range with a specific number:
voice translation-rule 998
rule 1 /\(\+4922126103[1-399]\)/ /+49221261030/
This works as expected on a single digit in the range:
But if the number is more than one digit in the range, only the first digit is replaced:
Solved! Go to Solution.
03-19-2014 01:50 PM
Use this instead:
rule 1 /\(\+4922126103[1-3]..\)/ /+49221261030/
Chris
03-19-2014 09:59 AM
What is the range as +4922126103[1-399] implies +49221261031 - +49221261033, +49221261039
the digits in bracket substitue one digit, so it is either 1 through 3, or 9 which you list twice.
Chris
03-19-2014 01:46 PM
Makes sense, but the docs don't say single digit, kind of confusing... "Indicates a range when not in the first/last position. Used with the'[' and ']'."
My intended range is 49 221 261 031 to 49 221 261 03399 (399 numbers) and rewrite them to 49 221 261 030
Maybe I'm using the wrong method, is there another way I could accomplish this?
Thanks,
Steve
03-19-2014 01:50 PM
Use this instead:
rule 1 /\(\+4922126103[1-3]..\)/ /+49221261030/
Chris
03-19-2014 02:03 PM
Was just playing with that as well. Only seems to match if there are 2 digits after the 1-3 range:
03-19-2014 02:11 PM
I dont follow, how many digits would you like to see after 1-3? Your range was 199-399 hence [1-3].., where .. covers 00-99
Chris
03-19-2014 02:37 PM
Right you are.. got it, thanks.
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