Re: [tcljava-user] Jacl 1.3 changes in regexp/regsub
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-02-01 18:36:27
|
On Tue, 31 Jan 2006 13:39:28 +0200 Joe Weisblatt <jwe...@ci...> wrote: > Some of my scripts have broken in the transition to Jacl 1.3.2. I note > the regexp/regsub is a new implementation. > Is this supposed to be exactly compatible with the old patterns? The current Jacl regexp implementation works like Tcl regexps did before the regexp rewrite in the 8.1 or 8.2 days. > Where is the documentation for the new commands? http://www.tcl.tk/man/tcl8.0/TclCmd/regexp.htm > Specifically: > regexp {<.*>} {abc<def>ghi} > will successfully match the "<def>", but > regexp {<\w*>} {abc<def>ghi} > doesn't. > > Any pointers? Is "\w" no longer supported? Seems [:alpha:] didn't work > either. No, those don't work. Those used to work in older version of Jacl only because the regexp package that was included in older versions supported it. But that ORO regexp package was binary only and was causing license problems for Jacl so it had to be replaced. cheers Mo DeJong |