<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Is there a way of referencing captured regex in the first condition of nested conditions?<div class=""><br class=""></div><div class="">EG If I have:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 188, 38); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp;&nbsp;</span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&lt;extension</span><span style="font-variant-ligatures: no-common-ligatures" class=""> name="8 prefix" continue="true"</span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 188, 38); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&lt;condition</span><span style="font-variant-ligatures: no-common-ligatures" class=""> field="destination_number" expression="^8(0\d{9,15})"/</span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 188, 38); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&lt;condition</span><span style="font-variant-ligatures: no-common-ligatures" class=""> field="${db(exists/${sip_from_user}/cli8}" expression="true"</span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 188, 38); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&lt;action</span><span style="font-variant-ligatures: no-common-ligatures" class=""> application="set" data="destination_number=$1" inline="true"/</span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class="">&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 187, 200); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures" class="">&lt;/condition&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(52, 187, 200); background-color: rgba(0, 0, 0, 0.933333);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #f4f4f4" class="">&nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures" class="">&lt;/extension&gt;</span></div>
<br class=""></div><div class="">At the moment this doesn’t capture the number, and just gives me an actual ‘$1’. I guess I could rearrange the conditions, but I don’t want to break all my logic really…</div></body></html>