Re: [tcljava-user] Jacl 1.3 changes in regexp/regsub
Brought to you by:
mdejong
From: Bruce J. <nm...@ma...> - 2006-02-01 19:51:38
|
The RegExp stuff starting in Java 1.4 (at least 1.4.2 anyway) is pretty complete, supporting stuff like "\w". How much trouble is it to make Jacl use that? Bruce On Feb 1, 2006, at 1:41 PM, Mo DeJong wrote: > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |