I have a file full of URLs in a weird format, characters separated by a space character.
h t t p : / / w w w . y o u t u b e . c o m / u s e r / A S D
h t t p : / / m o r c c . c o m / f r m / i n d . p h p ? t o p i c = 5 7 . 0
I would like to make it look like :
http://www.youtube.com/user/ASD
http://morcc.com/frm/ind.php?topic=57.0
I use notepad++, and I think regex could take care of this problem for me, unfortunately I don’t know regex.
I want to remove the ‘ ‘ character (space) between the characters, and leave them in listed format, so replacing /s with ” is not a solution, because it becomes a mess :/
I think I should also insert a /n BEFORE “http” occurs.
Can you not just replace a space ‘ ‘ with an empty string ”? Replacing \s is not working how you want because newlines are also matched.
If that doesn’t work you could, as you say, replace
\swith ” and then replacehttpwith\nhttp.