So i am very new to using regular expressions so please excuse my miss understandings.
So what i have is the expression below. What i am trying to accomplish is...
IF a call from (+1 or 1) optional (999-999-9999) comes in then prepend Test- to the caller ID name.
IF MATCH Condition(All,Standard Information[Caller ID Number] = ^(\+1|1)?(9999999999)$,SIP Header Information[From: Display] = (.*)$) THEN
The question is with the variable. In my example it works as desired. but the variable i had to use was a $1.
My understanding of Regular Expressions would have told me.
$1 = (\+1|1)
$2 = (9999999999)
$3 = (.*)
Each $number equals a value within the brackets.
So why in my setup if i use $1 do i get the desired results of "Test-Caller ID Name"
If i use $3 like i would have thought i should do i only get "Test-" no name or number to it.
Really just looking to see if anyone can clear this up for me. I have read all over online and everything i can find tells me i should have used $3 to get the results and $1 should have returned non desired results.