Reply To: tcl procs failing with ‘invalid argument to regex function’

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl procs failing with ‘invalid argument to regex function’ Reply To: tcl procs failing with ‘invalid argument to regex function’

#57965
Charlie Bursell
Participant

    Alice:

    When we went to Tcl 8.3, we also went to the new regular expression engine which is part of Tcl 8.3.  This engine is what they refer to as Advanced Regular Expressions (AREs).

    For the most part, regular expressions that were created under the old system will port with no problem.  The exception is, in the old REs you could do somthing like: “P”.  Since P is not a metacharacter it would simply convert to P.  In the AREs, if you escape a non-metacharacter you can get an error.  Check for that.

    Other than that, I have implemeneted 1000s of AREs and have had no problem.

    Let me know how it goes.

    Charlie