Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: Regex? Date: Thu, 19 Jun 2014 22:03:10 -0700 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 20 Jun 2014 05:03:08 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="32276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wFrU4Hx1hyi5aWCDV0Ow/" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:jvyWxl3JSfnsC5K98o+0k0E05S4= Xref: csiph.com comp.lang.java.programmer:28788 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