Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find/Replace: not to span multiple lines

Status
Not open for further replies.

cheer8923

Programmer
Aug 7, 2006
230
US
I tried with ([^13]@) but the match still spans multiple lines.

What's the proper regular expression not to span multiple lines?

thanks!
 
Which application?

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Word

Why is there [] inside [[]!^13]?

Thanks!
 
Hi cheer8923,

Your Find expression tells Word to find paragraph breaks. Despite the @, it'll only find them one at a time. Perhaps you need:
([^13]{1,})
to find any consecutive sequence of one or more paragraph breaks, or:
([^13]{2,})
to find any consecutive sequence of two or more paragraph breaks.


Cheers
[MS MVP - Word]
 
Why is there [] inside [[]!^13]?

I'm just back from holiday and don't know if you're still interested, but ... because I screwed up posting. It should, of course, have read [blue][tt][!^13]@[/tt][/blue]

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top