<div dir="ltr"><div><div>Hi, <br></div>I have changed the rules as you mentioned<br><br>INSERT INTO dialplan(id, dpid, pr, match_op, match_exp, match_len, 
subst_exp, repl_exp, attrs) VALUES (1, "1", "1", 1, "^000[0-9]+$ ", 0, 
"^000([0-9]+)$", "\\1", " ");<br><br></div>Eventhough its failing.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 9, 2017 at 5:05 PM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Aug 09, 2017 at 01:34:13PM +0530, Logeshwaran G wrote:<br>
> I have given the below query,<br>
><br>
> INSERT INTO dialplan(id, dpid, pr, match_op, match_exp, match_len,<br>
> subst_exp, repl_exp, attrs) VALUES (1, "1", "1", 1, "^000[0-9]+$ ", 0,<br>
> "^000([0-9]+)$", "\1", " ");<br>
><br>
> But the Rule is tking as "1"<br>
<br>
</span>See<br>
<a href="https://dev.mysql.com/doc/refman/5.7/en/string-literals.html" rel="noreferrer" target="_blank">https://dev.mysql.com/doc/<wbr>refman/5.7/en/string-literals.<wbr>html</a><br>
"Within a string, certain sequences have special meaning unless the<br>
NO_BACKSLASH_ESCAPES SQL mode is enabled. Each of these sequences begins<br>
with a backslash (\), known as the escape character. MySQL recognizes<br>
the escape sequences shown in Table 9.1, “Special Character Escape<br>
Sequences”. For all other escape sequences, backslash is ignored. That<br>
is, the escaped character is interpreted as if it was not escaped. For<br>
example, \x is just x. These sequences are case sensitive. For example,<br>
\b is interpreted as a backspace, but \B is interpreted as B. "<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div>