Reputation: 3809
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
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
Reputation: 22064
Either H$
or H\Z
should work.
See http://www.regular-expressions.info/reference.html for more info
Upvotes: 2