17 Feb
2014
17 Feb
'14
7:04 a.m.
On 17/02/14 09:55, Chaigneau, Nicolas wrote:
This works, but is not good enough because <value> might contain a comma.
Is there a better way to do this with unlang ?
As Arran has said, foreach: foreach (Cisco-AVPair) { if (Foreach-Variable-0 =~ /^circuit-id=(.+)/) { update control { My-Cisco-Circuit-Id := "%{1}" } } } At one point I submitted a patch to make the regexp operator logic loop through all matching values, but I think this functionality went away when unlang was rewritten.