cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
835
Views
0
Helpful
3
Replies

add 1 rule not working

Joli Martinez
Level 1
Level 1

I need to add a 1 to dialed number if it does not contain one.  I am using the rule below and what it does is it replaces the first digit with a 1 not append to it.

EX: I dial 2223334444 I get 1223334444 (replacing the first 2 with a 1)  How can I fix this?

 

rule 2 /^[2-9]/ /1/

q

2 Accepted Solutions

Accepted Solutions

That is exactly what I was looking for.

 

Thanks,

View solution in original post

3 Replies 3

Your rule is not correct. Change to below.

rule 2 /^\([2-9].*\)/ /1\1/

 



Response Signature


That is exactly what I was looking for.

 

Thanks,