Author | Post | |||
sniperkid |
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 |
|||
27.03.2006 13:34:56 |
|
|||
S0410N3 |
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. |
|||
27.03.2006 14:02:44 |
|
|||
theAnswer |
I think his problem is, he has: abc def ghi But he wants: abcdefghi |
|||
27.03.2006 14:12:40 |
|
|||
S0410N3 |
Ah ok So you have to replace ^p by nothing |
|||
27.03.2006 14:14:53 |
|
|||
sniperkid |
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) |
|||
27.03.2006 14:26:08 |
|
|||
S0410N3 |
Same logic, with Word replace ^p^p by ^p |
|||
Edited by S0410N3 on 27.03.2006 14:30:16 | ||||
27.03.2006 14:29:53 |
|
|||
sniperkid |
thanks alot, saved me a lot of time lol. |
|||
27.03.2006 14:35:50 |
|
|||
NicNacMan |
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 |
|||
02.04.2006 12:00:32 |
|
|||
S0410N3 |
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 |
|||
02.04.2006 12:06:22 |
|
|||
quangntenemy |
For windows you might want to try EmEditor (much more powerful than M$ free stuff ). 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 |
|||
02.04.2006 12:22:07 |
|