AST Users,
I thought the array ".sh.match" would have the things that the substitution
(which worked) had matched. Why didn't it?
x=',sns567:MCOMRE-9952;sns2345'
print -r -- "#--------------- x: $x"
y="${x//+([,:;])/^}"
print -r -- "#--------------- y: $y"
for i in "${!.sh.mat...@]}"; do print -r -- "<${.sh.match[i]}>"; done
#--------------- x: ,sns567:MCOMRE-9952;sns2345
#--------------- y: ^sns567^MCOMRE-9952^sns2345
<>
<>
<>
<>
<>
<>
<>
<>
<>
<>
Thanks,
Dan
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users