Reply To: need regexp for "everything except"

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf need regexp for "everything except" Reply To: need regexp for "everything except"

#56966
Bill Bertera
Participant

    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]