Removing all newlines?

Find, replace, find in files, replace in files, regular expressions

Removing all newlines?

Postby marlon » Wed Mar 02, 2005 8:11 am

When posting html code in a forum, the layout of the post gets f8cked-up because of the newlines (\n) in the text.
I would like UltraEdit to just strip all the newlines. Is this possible?
I already saw the CR/LF to Wrap function, but that just doesn't seem to solve the problem.
User avatar
marlon
Newbie
 
Posts: 1
Joined: Sun Feb 13, 2005 12:00 am

Re: Removing all newlines?

Postby oracledba » Thu Mar 03, 2005 4:38 pm

I am not visualizing what your saying. However, sure sounds like you can use your mouse, highlight the offending characters/text (including that which spans multiple lines) then hit ctrl-r (which brings up the search replace dialog box).
Do your replace of old with new as desired.

If you set the "regular expressions" check box, you can use expressions such as ^p in either the search box or replace box (or both). Do a help on regular expressions for more details of what symbols are available and what they mean.

If you like the effect you get with your replace, do this again only this time on this time first click "macro" "record" fill out panel as desired. do your replace and then click "macro" "stop recording". Depending on how you filled out that panel, you now have a key that when pressed will do the global replace for you.
User avatar
oracledba
Basic User
Basic User
 
Posts: 24
Joined: Wed Jan 19, 2005 12:00 am


Return to Find/Replace/Regular Expressions