Jeremy
Jeremy

Reputation: 3809

EditPad 7: Regular Expression for end of line?

I'm using EditPad 7 to edit some text and using regular expressions within the find and replace. I am trying to find only words at the end of the line.

Ex:

Wrapper:H
Wrapper:H Binder:G
Wrapper:Honduras

I want to find the capital H on the first line not the second or third line.

Upvotes: 1

Views: 1389

Answers (2)

Martin Ender
Martin Ender

Reputation: 44269

I don't know whether EditPad works in multi-line mode or not. If it does use this to find:

(Wrapper:)H$

and this to replace:

\1whateveryouwanttohaveinstead

Also, if you want to disregard additional whitespace between H and the end of the line (i.e if whitespace does not make not the end of the line), you can use this:

(Wrapper:)H\s*$

Upvotes: 1

CaffGeek
CaffGeek

Reputation: 22064

Either H$ or H\Z should work.

See http://www.regular-expressions.info/reference.html for more info

Upvotes: 2

Related Questions