S
S
ShadowlPlay2021-11-10 17:23:08
Asterisk
ShadowlPlay, 2021-11-10 17:23:08

How to correctly compose a regular expression for working with a variable in Asterisk?

The task is to insert into the dialplan a check of the EXTEN value, for the presence and trimming of a space at the end of EXTEN, if any. I understand that you need to use ExecIf, REGEXP, but various handler options are either "crutch" or do not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drill, 2021-11-10
@ShadowlPlay

Shadowplay ,
ExecIf(${REGEX(" $" ${foo})}?Set(foo=${foo:0:-1})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question