7 messages in com.googlegroups.google-code-searchRe: Search literal strings with escap...
FromSent OnAttachments
Matt27 Feb 2008 02:26 
Maryzhao198228 Feb 2008 01:39 
Dmitry Barashev28 Feb 2008 02:55 
Matt03 Mar 2008 05:02 
Dmitry Barashev03 Mar 2008 07:32 
Matt12 Mar 2008 06:31 
Matt15 Apr 2008 05:01 
Subject:Re: Search literal strings with escape character, for example containing an asterix ...
From:Dmitry Barashev (dbar@google.com)
Date:02/28/2008 02:55:26 AM
List:com.googlegroups.google-code-search

If your goal is to find a string literal enclosed with double quotes, starting with classpath and finishing with a colon then the following regular expression is valid:

\"classpath.*:\"

You have to escape the quotes because otherwise everything between them is treated as a literal (not regexp) and you have to use correct regexp syntax for "any symbol zero or more times" wildcard

Dmitry

On Wed, Feb 27, 2008 at 1:27 PM, Matt <mbyr@gmail.com> wrote:

Hi,

I haven't figured out how to search a literal string containing special characters. An example of what I am trying to search for is

"classpath*:"

I've tried the following classpath*: classpath\*: "classpath*:" "classpath\*:"

None of these seem to return what I had hoped. Is there any way to do this, or is it not possible?

Thanks,