Topic: "Notepad + Line Breaks" (page 1 of 2)

1 2 >
Author Post
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
when i paste something into notepad, it has line breaks, <br> in html. i was wondering if there was a way to use the replace command to get rid of them. Anyone know if its possible :noclue:
private message Website
S0410N3
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
In those cases I use Word.

if you have something like :
aaaaaaaaaaa<br>bbbbbbbb<br>ccccccccccc
and want :
aaaaaaaaaaa
bbbbbbbb
ccccccccccc

then paste it in Word and replace <br> by ^p, then copy/paste it again in notepad if you want.

If there are already line breaks after the <br> then you just have to replace <br> by nothing (let the destination field empty). For this you don't need to use Word.
private message Website
theAnswer
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I think his problem is, he has:
abc
def
ghi

But he wants:
abcdefghi
private message
S0410N3
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Ah ok

So you have to replace ^p by nothing :)
private message Website
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
what i have is something like;

1

3
4
5

3
2
5

and i need it without the <br> (not 1 string, just 1 under each other)
private message Website
S0410N3
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Same logic, with Word replace ^p^p by ^p
Edited by S0410N3 on 27.03.2006 14:30:16
private message Website
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
thanks alot, saved me a lot of time lol.
:drink3:
private message Website
NicNacMan
groupmastergroupmastergroupmastergroupmaster
it's very helpful, thx...
but certainly there are more commands like ^p, do you have a list?
and do you know, to trim a line (delete spaces only at the end of the line)?

thx nicnacman
private message
S0410N3
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Click on the "Plus" button in the search and replace window, then "special", all are there.
To trim it's the same logic, play with " ^p" -> "^p" (maybe you'll have to do it multiple time).

BTW I wanted to add that if you have to do large search and replace the best is to use Linux and vi cause word is really slow... It's just useful for small files.

with vi :
:g/expr1/s//expr2/g
private message Website
quangntenemy
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
For windows you might want to try EmEditor (much more powerful than M$ free stuff :p). It supports searching/replacingwith regular expressions. I even code some of my applets with it :)
It ain't free, but I'm sure you can crack it or find a keygen somewhere :P
private message EMail Website

Topic: "Notepad + Line Breaks" (page 1 of 2)

1 2 >