Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › need regexp for "everything except" › Reply To: need regexp for "everything except"
I think this is what you’re looking for:
hcitcl>set a “%label%Stuff other than label”
hcitcl>echo $a
%label%Stuff other than label
hcitcl>regexp {(%label%)(.*)} $a one two three
1
hcitcl>echo $three
Stuff other than label
hcitcl>
[/b]