<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=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class=""><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="">></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=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class=""><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="">></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=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class=""><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="">></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=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc8" class=""><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="">></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=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""></condition></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=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""></extension></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>