Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2013, 04:51 AM
eNGiNe eNGiNe is offline regular expressions for empty lines Windows 7 32bit regular expressions for empty lines Office 2010 64bit
Expert
regular expressions for empty lines
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default regular expressions for empty lines

When I'm tidying up plain text files in Vim, the regular expression ^$ matches empty lines. How do I do this with the Special options in the Word 2010 Find and Replace dialog?
Reply With Quote
  #2  
Old 01-21-2013, 06:38 AM
OTPM OTPM is offline regular expressions for empty lines Windows 7 32bit regular expressions for empty lines Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
Empty lines in Word will have a Paragraph mark assigned to them. You will see them when you click on the Show/Hide button.
If you want to remove blank lines in a Word document then follow these steps:
1. On the Home tab of your document click on the Replace option at the right hand side of the toolbar.
2. In the Find box enter "^p^p" without the quotes.
3. In the Replace With box enter "^p" without the quotes.
4. Then press Alt+A.
Do step 4 as many times as you need to until it find nothing to replace.
This will remove ALL black lines from your Word document.
Hope this helps.
Good luck.
Tony
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
regular expressions for empty lines Regular Expressions: match words within quotes? tinfanide Word VBA 3 02-02-2013 10:07 PM
regular expressions for empty lines Regular expressions: lower case after hyphen SusanG Word 2 06-06-2012 11:58 PM
regular expressions for empty lines Regular Expressions: [!0-9] does not work??? tinfanide Excel Programming 4 05-30-2012 04:09 AM
Deleting empty lines lostsoul62 Word 5 04-16-2012 04:55 AM
Issue skipping characters by Regular Expressions in Word pochtara Word VBA 0 04-01-2010 05:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:02 PM.


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