A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to replace new lines?



 
 
Thread Tools Display Modes
  #1  
Old February 7th, 2007, 04:52 AM posted to microsoft.public.word.formatting.longdocs
light_wt
external usenet poster
 
Posts: 8
Default how to replace new lines?

Hi,

I have been doing the straight forward finding new lines using ^p .

If I do a wild card search (regular expression), what to use in place of the
^p? I've tried \n. It didn't work. It works with ^p.

Thanks.
  #2  
Old February 7th, 2007, 05:44 AM posted to microsoft.public.word.formatting.longdocs
Jezebel
external usenet poster
 
Posts: 1,369
Default how to replace new lines?

^013 - you can use the character code equivalent for any character.



"light_wt" wrote in message
...
Hi,

I have been doing the straight forward finding new lines using ^p .

If I do a wild card search (regular expression), what to use in place of
the
^p? I've tried \n. It didn't work. It works with ^p.

Thanks.



  #3  
Old February 7th, 2007, 07:54 AM posted to microsoft.public.word.formatting.longdocs
Graham Mayor
external usenet poster
 
Posts: 18,297
Default how to replace new lines?

See http://www.gmayor.com/replace_using_wildcards.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


light_wt wrote:
Hi,

I have been doing the straight forward finding new lines using ^p .

If I do a wild card search (regular expression), what to use in place
of the ^p? I've tried \n. It didn't work. It works with ^p.

Thanks.



  #4  
Old February 7th, 2007, 02:46 PM posted to microsoft.public.word.formatting.longdocs
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default how to replace new lines?

To add to what Jezebel and Graham have said, ^p doesn't find "new lines." It
finds paragraph breaks. A "line break" (new line character) is found by
searching for ^l (lowercase L); this works with wildcards as well.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"light_wt" wrote in message
...
Hi,

I have been doing the straight forward finding new lines using ^p .

If I do a wild card search (regular expression), what to use in place of

the
^p? I've tried \n. It didn't work. It works with ^p.

Thanks.


  #5  
Old February 9th, 2007, 04:43 PM posted to microsoft.public.word.formatting.longdocs
light_wt
external usenet poster
 
Posts: 8
Default how to replace new lines?

Thanks for all of the responses.

In Word,
^013 works,
^l doesn’t

If I use WordPad, both doesn’t work.

If I use WordPad I lot, what is the character to use to replace that "new
line". Is it CR or CR/LF or LF use in WordPad?

Thanks.
  #6  
Old February 10th, 2007, 09:22 AM posted to microsoft.public.word.formatting.longdocs
Graham Mayor
external usenet poster
 
Posts: 18,297
Default how to replace new lines?

^l will work in Word if there is a line break to find. ^011 is an
alternative for that.
This forum is for Word! Wordpad is a rudimentary word processor that does
not have the search functionality of Word.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



light_wt wrote:
Thanks for all of the responses.

In Word,
^013 works,
^l doesn't

If I use WordPad, both doesn't work.

If I use WordPad I lot, what is the character to use to replace that
"new line". Is it CR or CR/LF or LF use in WordPad?

Thanks.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.