[sr-dev] dialplan and empty repl_exp
Richard Fuchs
rfuchs at sipwise.com
Mon May 7 20:31:48 CEST 2012
On 05/07/12 14:28, Juha Heinanen wrote:
> Richard Fuchs writes:
>
>> But why are parts NOT matched by the subst_exp stripped from the output
>> string? With a subst_exp of "(.)" and a repl_exp of "\1", I'd expect the
>> output string to be unchanged.
>
> if you have subst_exp (.*) and repl_exp \1, then you will get the whole
> thing as result.
I know that, but that doesn't answer my question. :) Regex substitutions
work the same everywhere, s/(.)/\1/ in sed or Perl for example leaves
the string unchanged. Why is the dialplan module different?
BR
Richard
More information about the sr-dev
mailing list