How can I eliminate text and spaces?
For instance:
http://www.exampleweb.com/myprogram.rar
http://www.examplebackup.com/mybackups.rar
http://www.exampleweb.com/myprogram1.rar
I have used something similar to remove the second line:
http://www.examplebackup.com/.+?.rar
The final outcome is:
http://www.exampleweb.com/myprogram.rar
http://www.exampleweb.com/myprogram1.rar
But I would like to achieve that with no remaining white spaces:
http://www.exampleweb.com/myprogram.rar
http://www.exampleweb.com/myprogram1.rar
Any assistance would be greatly appreciated as I am a complete beginner with regex.