CodingI need a regexp

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Matt  
 To:  af (CAER)      
30444.5 In reply to 30444.3 

Are you trying to search for files from within ConTEXT / Writer containing \n or opening the files and searching within them? For whatever reason some editors refuses to find \n in files using the find in files option, but the regular search and replace on opened files will work.

 

Otherwise I must conclude that they're both doing something stupid.

 

And like don't be forgetting that different platforms have different line endings, so while \n\n would work for *nix platforms you'd need to search for \r\n\r\n for Windows and \r\r for Mac.

doohicky

0/0
 Reply   Quote More 

 From:  af (CAER)   
 To:  Matt     
30444.6 In reply to 30444.5 
Well I dunno what was up with ConTEXT but I managed to do it in Writer by first doing a S&R for $^ and replacing it with blank, which removed all empty paragraphs, then I just replaced $ with ' ' which replaced the paragraph breaks with spaces but skipped over the remaining empty paragraphs. All is well.
Caer
0/0
 Reply   Quote More 

Reply to All    
 

1–6

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats