Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18959

Re: Regexp exception in String.replaceAll

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Regexp exception in String.replaceAll
Date Wed, 26 Sep 2012 14:31:36 -0700
Organization A noiseless patient Spider
Lines 16
Message-ID <k3vs7p$jjd$1@dont-email.me> (permalink)
References <7ku568loa4ogik4e6asouundcbcjurg6lj@4ax.com> <k3v3ic$9j4$1@dont-email.me> <u0b668hvravflnt1upsks1rv0bnsmlt6us@4ax.com> <k3vcan$67i$1@dont-email.me> <k3vktg$1a2$1@dont-email.me> <syJ8s.3$g24.0@newsfe23.iad>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 26 Sep 2012 21:31:37 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="20077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vzDMLzENXVnn/CcQNjKtSUVzp3L0WrPg="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To <syJ8s.3$g24.0@newsfe23.iad>
Cancel-Lock sha1:CDPmVC4ZXLyKxFY6TrM5naFh+sA=
Xref csiph.com comp.lang.java.programmer:18959

Show key headers only | View raw


On 9/26/2012 1:27 PM, Daniel Pitts wrote:

> On 9/26/12 12:26 PM, Daniele Futtorovic wrote:
>> To be a little pedantic myself and for the record, I don't think the
>> quoting of a Pattern and the quoting of a replacement string are the
>> same type of quoting.

> Indeed, Pattern.quote is for quoting the pattern, and
> Matcher.quoteReplacement is for quoting the replacement.  The OP should
> be using both.


Nope that's what I get for not paying close attention to what's being 
discussed.  Correct on both counts!

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Regexp exception in String.replaceAll Tim Slattery <Slattery_T@bls.gov> - 2012-09-26 08:57 -0400
  Re: Regexp exception in String.replaceAll Arne Vajhøj <arne@vajhoej.dk> - 2012-09-26 09:13 -0400
  Re: Regexp exception in String.replaceAll Steven Simpson <ss@domain.invalid> - 2012-09-26 15:18 +0100
  Re: Regexp exception in String.replaceAll Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-09-26 16:30 +0200
    Re: Regexp exception in String.replaceAll Tim Slattery <Slattery_T@bls.gov> - 2012-09-26 12:35 -0400
      Re: Regexp exception in String.replaceAll markspace <-@.> - 2012-09-26 10:00 -0700
        Re: Regexp exception in String.replaceAll Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-09-26 21:26 +0200
          Re: Regexp exception in String.replaceAll Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-26 13:27 -0700
            Re: Regexp exception in String.replaceAll markspace <-@.> - 2012-09-26 14:31 -0700
      Re: Regexp exception in String.replaceAll Lew <lewbloch@gmail.com> - 2012-09-26 13:32 -0700
  Re: Regexp exception in String.replaceAll Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-26 09:43 -0700
  Re: Regexp exception in String.replaceAll Roedy Green <see_website@mindprod.com.invalid> - 2012-09-27 12:10 -0700

csiph-web