View Single Post
 
Old 04-21-2021, 09:11 AM
Steve Kunkel Steve Kunkel is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: May 2019
Location: Seattle area
Posts: 81
Steve Kunkel is on a distinguished road
Default Find and Replace not capturing entire line

Hi there. First a side-question: When I see "FNR" in the forum, does that mean find-and-replace?

Now the actual question: This is actually for a VBA project, but I'm testing it using the built-in FaR tool.

Given this text (notice 'space space' at the beginning of some lines)

EDIT!!! Forum is truncating the spaces!!!! Let me try something different.
Okay... Screenshot...

My setup is
Code:
wildcards = true.
find = "([ ]@)(<[!^l^13]{1,}>)"
'my intent is (first group = zero or more spaces)(second grp = one or more of anything but a hard or soft line return)
replace = "\1+ \2"


It would be nice if there were a way to specify "beginning of line/end of line," but that doesn't appear to be possible.

Any thoughts on this?
Reply With Quote