Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » File Search regex-- crossing line boundaries
File Search regex-- crossing line boundaries [message #185484] Sun, 14 November 2004 16:09 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Changing the Java source code generated from Source... menu
Next Topic:How to create a standalone command line tool that successfully uses ASTParser.setResolveBindings(tru
Goto Forum:
  


Current Time: Tue Apr 29 01:38:27 EDT 2025

Powered by FUDForum. Page generated in 1.22202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top