#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
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 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regular Expressions: match words within quotes? | tinfanide | Word VBA | 3 | 02-02-2013 10:07 PM |
Regular expressions: lower case after hyphen | SusanG | Word | 2 | 06-06-2012 11:58 PM |
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 |