开发者

Notepad++ RegEx

开发者 https://www.devze.com 2023-01-31 02:38 出处:网络
I am in need a reg ex for the following: /****** Object: AnyNumberofCharacters ****开发者_运维问答**/

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.


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\:.*\*\*\*\*\*\*/


I guess that

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

should do that...

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

0

精彩评论

暂无评论...
验证码 换一张
取 消