You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by "DePaola, Teresa" <TD...@Verbind.com> on 2002/06/13 19:16:48 UTC
Using Parens only for grouping
Does anyone have any idea if I can group part of my Regular Expression with
parentheses but NOT have the match stored in memory?
I am searching for words separated by colons (:). When trying to match two
words separated by colons, my regular expression looks like this:
(:\w+){2}
and it works fine but for various reasons, I need to avoid having the match
be stored as $1. My perl books say I can use
(?:<expression>)
but I can't get this to work with RE. Can anyone help?
Thanks!
Teresa
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Using Parens only for grouping
Posted by Michael McCallum <mi...@snaphire.com>.
Yes but only using the current cvs build.
Which you probably have to build yourself.
On Friday, 14 June, 2002 05:16, DePaola, Teresa wrote:
> Does anyone have any idea if I can group part of my Regular Expression with
> parentheses but NOT have the match stored in memory?
> I am searching for words separated by colons (:). When trying to match two
> words separated by colons, my regular expression looks like this:
>
> (:\w+){2}
>
> and it works fine but for various reasons, I need to avoid having the match
> be stored as $1. My perl books say I can use
>
> (?:<expression>)
>
> but I can't get this to work with RE. Can anyone help?
>
> Thanks!
>
> Teresa
--
In this age, which believes that there is a short cut
to everything, the greatest lesson to be learned is
that the most difficult way is, in the long run,
the easiest.
-- Henry Miller (1891-1980), The Books in My Life, Preface (1951).
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: J2SE 1.4 Regex
Posted by Mehran Habibi <mh...@copper.net>.
Thanks, I'll search the archives.
M
-----Original Message-----
From: Michael McCallum [mailto:michael@snaphire.com]
Sent: Friday, June 14, 2002 1:59 AM
To: Regexp Users List
Subject: Re: J2SE 1.4 Regex
On Friday, 14 June, 2002 06:58, Mehran Habibi wrote:
> This may have come up before: if so, my apologies. What is everyone's
> feelings on the J2SE 1.4 Regex package? How comfortable would you be
> migrating to it? What issue would have to be addressed before you did so?
if you want to use it use it.
Jakarta RegExp is not going to be a wrapper for the J2SE regexp code.
Do a search on the archives there has been a bit of discussion try the oro
list archives as well.
Michael
>
> Thanks,
> Mehran
--
In this age, which believes that there is a short cut
to everything, the greatest lesson to be learned is
that the most difficult way is, in the long run,
the easiest.
-- Henry Miller (1891-1980), The Books in My Life, Preface (1951).
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: J2SE 1.4 Regex
Posted by Michael McCallum <mi...@snaphire.com>.
On Friday, 14 June, 2002 06:58, Mehran Habibi wrote:
> This may have come up before: if so, my apologies. What is everyone's
> feelings on the J2SE 1.4 Regex package? How comfortable would you be
> migrating to it? What issue would have to be addressed before you did so?
if you want to use it use it.
Jakarta RegExp is not going to be a wrapper for the J2SE regexp code.
Do a search on the archives there has been a bit of discussion try the oro list archives as well.
Michael
>
> Thanks,
> Mehran
--
In this age, which believes that there is a short cut
to everything, the greatest lesson to be learned is
that the most difficult way is, in the long run,
the easiest.
-- Henry Miller (1891-1980), The Books in My Life, Preface (1951).
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
J2SE 1.4 Regex
Posted by Mehran Habibi <mh...@copper.net>.
This may have come up before: if so, my apologies. What is everyone's
feelings on the J2SE 1.4 Regex package? How comfortable would you be
migrating to it? What issue would have to be addressed before you did so?
Thanks,
Mehran
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>