Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-21-2021, 09:11 AM
Steve Kunkel Steve Kunkel is offline Find and Replace not capturing entire line Windows 10 Find and Replace not capturing entire line Office 2019
Advanced Beginner
Find and Replace not capturing entire line
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace not capturing entire line Find and Replace Line Spacing farisca Word 2 06-18-2020 04:02 PM
Find and Replace not capturing entire line Find / Replace hard Carriage Return with Line break. GreenBoy Word 2 03-11-2018 02:32 AM
Find/Replace in a selected cell(s), but across entire workbook ue418 Excel 1 12-21-2017 12:32 AM
Find and Replace not capturing entire line Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
using find/replace on an entire directory? mzimmers Word 0 12-13-2010 12:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft