On 05/07/12 14:11, Juha Heinanen wrote:
Andreas Granig writes:
If the dialplan entry has match_exp="^999" and subst_exp="^999" and repl_exp="" and my $rU is "999123", I'd expect $var(out) to be "123", because an empty replacement part is perfectly valid for a regex.
repl_exp is not regex. it is replacement expression where you can refer to () parts of subt_exp as \1, \2, etc. if repl_exp is empty, result is empty.
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.
BR Richard