Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1962
| From | mike <mikaelpetterson@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Regexp help |
| Date | 2012-08-07 07:03 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <3e0aa0ea-bdb5-4cd5-bdae-4fcd31c70a7f@googlegroups.com> (permalink) |
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
Back to comp.lang.java.help | Previous | Next — Next in thread | Find similar | Unroll thread
Regexp help mike <mikaelpetterson@hotmail.com> - 2012-08-07 07:03 -0700
Re: Regexp help Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-07 14:38 -0700
Re: Regexp help mike <mikaelpetterson@hotmail.com> - 2012-08-07 22:14 -0700
Re: Regexp help Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-08 09:11 -0700
Re: Regexp help markspace <-@.> - 2012-08-08 10:16 -0700
Re: Regexp help Gene Wirchenko <genew@ocis.net> - 2012-08-08 12:13 -0700
Re: Regexp help markspace <-@.> - 2012-08-08 14:15 -0700
Re: Regexp help Gene Wirchenko <genew@ocis.net> - 2012-08-08 18:43 -0700
csiph-web