File Search regex-- crossing line boundaries [message #185484] |
Sun, 14 November 2004 16:09  |
Eclipse User |
|
|
|
Originally posted by: joe.joe.com
Hello,
I would like to use the "File Search" to find/replace copyright notices,
in my java files, that look like this:
//=======================================
// Copyright (c) 2004 Me
// $Id: MyClass.java,v 1.1 2004/10/13 01:16:52 jpanico Exp $
//=======================================
I have a simple regex that should match:
//=*\n//\sCopyright.*\n.*\n//=*
but it doesn't. I can match the first line: //=*, or //=*$, but I can't
get it to cross the line boundary.
Can someone tell me how to cross the line boundary?
thanks,
joe
|
|
|
Re: File Search regex-- crossing line boundaries [message #185543 is a reply to message #185484] |
Mon, 15 November 2004 07:11  |
Eclipse User |
|
|
|
joe wrote:
> I would like to use the "File Search" to find/replace copyright notices,
> in my java files, that look like this:
>
> //=======================================
> // Copyright (c) 2004 Me
> // $Id: MyClass.java,v 1.1 2004/10/13 01:16:52 jpanico Exp $
> //=======================================
>
> I have a simple regex that should match:
>
> //=*\n//\sCopyright.*\n.*\n//=*
>
> but it doesn't. I can match the first line: //=*, or //=*$, but I can't
> get it to cross the line boundary.
>
> Can someone tell me how to cross the line boundary?
Currently, there's no way. But I heard it's in the works:
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=26780 .
Markus
|
|
|
Powered by
FUDForum. Page generated in 1.22202 seconds