Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: mike Newsgroups: comp.lang.java.help Subject: Regexp help Date: Tue, 7 Aug 2012 07:03:14 -0700 (PDT) Organization: http://groups.google.com Lines: 24 Message-ID: <3e0aa0ea-bdb5-4cd5-bdae-4fcd31c70a7f@googlegroups.com> NNTP-Posting-Host: 194.237.142.20 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1344348194 2764 127.0.0.1 (7 Aug 2012 14:03:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Aug 2012 14:03:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.237.142.20; posting-account=1c_fOgoAAADuOXlL0A4-T9PUmVHtMSYd User-Agent: G2/1.0 X-Received-Bytes: 1375 Xref: csiph.com comp.lang.java.help:1962 Hi, I have the following: Input 1: Needs Merge "." [(automatic) to \main\2 from \main\rel1\2 (base also \main\2)] Input 2: Needs Merge "./update" [to /main/4 from /main/bugfix/1 base /main/2] I have the following regexp: Needs\s+Merge\s+\"(.*)\"\s+\[(\(automatic\)\s)?to\s+(.*)\s+from\s+(.*)\s+\(?base\s{1}(also\s{1})?(.*)\] The last grouping (6) is: Input 1: \main\2) Input 2: /main/2 How can I avoid get the parenthesis to be included in group(6) for input 1? br, //mike