John Hartsock
John Hartsock

Reputation: 86872

Notepad++ RegEx

I am in need a reg ex for the following:

/****** Object: AnyNumberofCharacters ******/

Here is what I have Tried but I cant make it work

/^\/\*\*\*\*\*\* Object\:.*\*\*\*\*\*\*\//

Could someone tell me what I'm doing wrong?


Edited: Sorry I'm using NotePad++ to search a number of text files for this string.

Upvotes: 1

Views: 588

Answers (2)

BoltClock
BoltClock

Reputation: 723498

Since you are using Notepad++ to find that string, you don't need the delimiters. And therefore, you don't need to escape the forward slashes either.

^/\*\*\*\*\*\* Object\:.*\*\*\*\*\*\*/

Upvotes: 3

PJK
PJK

Reputation: 2112

I guess that

/^\/\*{6} Object: [\w]+ \*{6}\/$/

should do that...

Don't forget to adjust the [\w] range accordingly.

Upvotes: 1

Related Questions