MIG
MIG

Reputation: 13

In Notepad++, How to identify specific line and replace content which includes regex characters

The line which I want to search in all the files are having below pattern:

* $Header: <<path and version info>> Exp $

E.g.

* $Header: /home/cvsd/cvs/root/abc.sp,v 1.1 2016/05/04 10:44:09 abcXyz Exp $ 

The pattern is, line always starts with "* $Header:" and ends with "Exp $" Since it also contains $, *, and / which are used in building a regular expression I do not know how to deal with it. Appreciate any help.

Upvotes: 1

Views: 38

Answers (1)

Jan
Jan

Reputation: 43169

You may use

^\* \$Header.*\$ *$

See a demo on regex101.com.

Upvotes: 1

Related Questions