Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #4852
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!p13g2000yqh.googlegroups.com!not-for-mail |
|---|---|
| From | laredotornado <laredotornado@zipmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Confusion about String.matches method |
| Date | Wed, 1 Jun 2011 07:10:00 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 29 |
| Message-ID | <2fd869d6-c2f6-4360-85b4-6df2b6e68fb0@p13g2000yqh.googlegroups.com> (permalink) |
| References | <baaf3c9c-b3be-4d14-a5de-2149617640b2@k17g2000vbn.googlegroups.com> <slrniua9ad.phi.avl@gamma.logic.tuwien.ac.at> <50016a00-9422-46d4-8278-619fedafff55@c41g2000yqm.googlegroups.com> <nqrau6pa3u55q5ilki6h2dqk3qprd3er9d@4ax.com> |
| NNTP-Posting-Host | 12.35.97.2 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1306937400 24980 127.0.0.1 (1 Jun 2011 14:10:00 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 1 Jun 2011 14:10:00 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | p13g2000yqh.googlegroups.com; posting-host=12.35.97.2; posting-account=zt23pwkAAAA2e0I4vm_QVtIFELE6FZEJ |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-Header-Order | HUALESNKRC |
| X-HTTP-UserAgent | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2,gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4852 |
Show key headers only | View raw
On May 31, 5:53 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Tue, 31 May 2011 13:15:55 -0700 (PDT),laredotornado
> <laredotorn...@zipmail.com> wrote, quoted or indirectly quoted someone
> who said :
>
>
>
> >Is there a way I can match an arbitrary string without having to
> >escape everything? I tried putting my token in quotes ...
>
> yes. Seehttp://mindprod.com/jgloss/regex.html#AWKWARD
> for various techniques of quoting.
> --
> Roedy Green Canadian Mind Productshttp://mindprod.com
> How long did it take after the car was invented before owners understood
> cars would not work unless you regularly changed the oil and the tires?
> We have gone 33 years and still it is rare to uncover a user who
> understands computers don't work without regular backups.
K, thought I had this all rigured out thanks to everyone's
suggestions, but I still have this one RE that's failing and I can't
figure out why. I have
"G37 Convertible\n$45,750*".matches("^.*\\Q$45,750\\E.*$")
which returns false. If I remove the new line ("\n"), it matches, but
I can't guarantee my input won't contain new lines. How can I modify
my regular expression to match? Thanks, - Dave
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Confusion about String.matches method laredotornado <laredotornado@zipmail.com> - 2011-05-31 10:24 -0700
Re: Confusion about String.matches method Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-31 17:28 +0000
Re: Confusion about String.matches method laredotornado <laredotornado@zipmail.com> - 2011-05-31 13:15 -0700
Re: Confusion about String.matches method Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-31 23:10 +0200
Re: Confusion about String.matches method Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-31 21:26 +0000
Re: Confusion about String.matches method Ian Shef <invalid@avoiding.spam> - 2011-05-31 22:20 +0000
Re: Confusion about String.matches method Roedy Green <see_website@mindprod.com.invalid> - 2011-05-31 15:53 -0700
Re: Confusion about String.matches method laredotornado <laredotornado@zipmail.com> - 2011-06-01 07:10 -0700
Re: Confusion about String.matches method Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-06-01 16:02 +0100
Re: Confusion about String.matches method Roedy Green <see_website@mindprod.com.invalid> - 2011-06-06 00:50 -0700
Re: Confusion about String.matches method Esmond Pitt <esmond.pitt@bigpond.com> - 2011-06-06 20:18 +1000
Re: Confusion about String.matches method Roedy Green <see_website@mindprod.com.invalid> - 2011-06-07 21:15 -0700
Re: Confusion about String.matches method Michael Wojcik <mwojcik@newsguy.com> - 2011-06-08 11:13 -0400
Re: Confusion about String.matches method Esmond Pitt <esmond.pitt@bigpond.com> - 2011-06-09 19:19 +1000
Re: Confusion about String.matches method Roedy Green <see_website@mindprod.com.invalid> - 2011-06-07 21:18 -0700
Re: Confusion about String.matches method Gene Wirchenko <genew@ocis.net> - 2011-06-08 07:50 -0700
Re: Confusion about String.matches method Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-06-06 12:15 +0100
Re: Confusion about String.matches method Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-06-01 11:17 -0400
Re: Confusion about String.matches method Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-06-01 18:59 +0200
Re: Confusion about String.matches method Ian Shef <invalid@avoiding.spam> - 2011-06-01 19:41 +0000
Re: Confusion about String.matches method Jim Janney <jjanney@shell.xmission.com> - 2011-06-01 08:41 -0600
csiph-web