Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: simple regex pattern sought Date: Fri, 25 May 2012 14:55:01 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 25 May 2012 21:55:03 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="2kn9RzOWSe/v/hLnHgGT4Q"; logging-data="7344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JSolqj5k3yqAdOwJ/vM8AaxK5AT4CTis=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:EQLaGLaHy+IxByGjfFBZG8GEOqg= Xref: csiph.com comp.lang.java.programmer:14800 On 5/25/2012 2:45 PM, Roedy Green wrote: > I often have to search for things of the form > > "xxxxx" > or > 'xxxxx' > > where xxx is anything not " or '. It might be Russian or English or > any other language. > > What is the cleanest way to do that? Would this work? '[^']+'|"[^"]+"