Hello
I’m using a prefix string and a prefix number separated by ‘-’. I’d like to remove this specific character
For example:
system-111-987 => I want to call the 111987
With the cut digit ${EXTEN:7} I’m calling 111-987. I need somethig to cut first 7 digits AND the 11th digit
Can someone help me?
Thank you all. All yours suggestions help me a lot.
With a system exten ‘system-111-987’, I solved in this way:
${EXTEN:7:3} → This take 111
${EXTEN:12} → This take 987
In the end the concatenation:
${EXTEN:7:3}${EXTEN:12} → 111987
Should do the same, and will not break in case someone decide to replace system with world, or change - to _, or if you change the length of the numbers.