Overview
| Artifact ID: | b2c67e7e944cc4560535ee4b80a37ec6458d5401 |
|---|---|
| Ticket: | 1860727fffffffffffffffffffffffffffffffff
PCRE optional regexp |
| User & Date: | hobbs on 2007-12-30 09:04:25 |
Changes
- icomment:
File Added - 260151: pcre.diff.gz Logged In: YES user_id=72656 Originator: YES Updated version that adds: interp regexp {} ?classic|pcre? So set the default engine with [interp regexp {} pcre]. I've also added support in Tcl_RegExpExecObj to recognize compiled PCREs so that the compile case works. It currently assumes -binary operation by default. In the lmbench grep.tcl code, you need to add: if {![catch {interp regexp {}}]} { puts stderr "PCRE regexp" interp regexp {} pcre } else { puts stderr "TCL regexp" } and then it will work as before, just faster. File Added: pcre.diff.gz - login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"