<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 43: regexp not upgraded in JACL 1.4.0</title><link href="https://sourceforge.net/p/tcljava/bugs/43/" rel="alternate"/><link href="https://sourceforge.net/p/tcljava/bugs/43/feed.atom" rel="self"/><id>https://sourceforge.net/p/tcljava/bugs/43/</id><updated>2006-11-20T18:28:12Z</updated><subtitle>Recent changes to 43: regexp not upgraded in JACL 1.4.0</subtitle><entry><title>regexp not upgraded in JACL 1.4.0</title><link href="https://sourceforge.net/p/tcljava/bugs/43/" rel="alternate"/><published>2006-11-20T18:28:12Z</published><updated>2006-11-20T18:28:12Z</updated><author><name>San</name><uri>https://sourceforge.net/u/ssanjeev/</uri></author><id>https://sourceforge.netb65b885e62cdd8fce51326cd5e95551eab41e560</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have worked with the regexp command in 8.4+ version of TCL.  It has many convenient switches and is closer to the standard regular expression syntax that is in use.  When I tried to access the same scripts with Jacl - I get the error saying only -nocase is the only supported switch - this is about 6 years old.  We need support for all the switches (-inline, -lineanchor, -linestop, -all etc).  I have traced it to the Regex class that is being used - which is sunlabs.brazil.util.regexp.Regexp class - which again is obsolete.&lt;/p&gt;
&lt;p&gt;Here are the switches that I am talking about:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.tcl.tk/man/tcl8.3/TclCmd/regexp.htm" rel="nofollow"&gt;http://www.tcl.tk/man/tcl8.3/TclCmd/regexp.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the exception string that I get on evalFiling the tcl script:&lt;/p&gt;
&lt;p&gt;bad switch "-all": must be -indices, -nocase, or --  The failure is at:&lt;/p&gt;
&lt;p&gt;foreach {login} [regexp -nocase -all -inline -lineanchor -- {^login.+?\n\}} $fileContent] { &lt;/p&gt;
&lt;p&gt;of the script.&lt;/p&gt;
&lt;p&gt;- Sanjeev&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>