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


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

Re: Regex?

From Knute Johnson <eternal@knutejohnson.com>
Newsgroups comp.lang.java.programmer
Subject Re: Regex?
Date 2014-06-19 22:03 -0700
Organization A noiseless patient Spider
Message-ID <lo0fac$vgk$1@dont-email.me> (permalink)
References <lo0du6$os5$1@dont-email.me>

Show all headers | View raw


Pattern.compile(Pattern.quote("the string with the ) in it"));

I hate that, look for it for an hour, write something here and then come 
across the answer 2 minutes later.

k...

On 6/19/2014 21:39, Knute Johnson wrote:
> How do you search for a String that contains a character such as ( that
> is special to a regex?
>
> Thanks,
>


-- 

Knute Johnson

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


Thread

Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-19 21:39 -0700
  Re: Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-19 22:03 -0700
    Re: Regex? Robert Klemme <shortcutter@googlemail.com> - 2014-06-20 09:25 +0200
      Re: Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-20 08:06 -0700
        Re: Regex? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-20 11:14 -0400
          Re: Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-20 15:46 -0700
            Re: Regex? Roedy Green <see_website@mindprod.com.invalid> - 2014-06-25 08:15 -0700
              Re: Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-25 18:10 -0700
                Re: Regex? Knute Johnson <eternal@knutejohnson.com> - 2014-06-30 09:52 -0700
    Re: Regex? Roedy Green <see_website@mindprod.com.invalid> - 2014-06-21 09:49 -0700
  Re: Regex? Roedy Green <see_website@mindprod.com.invalid> - 2014-08-01 02:45 -0700

csiph-web