You could do that, but it might not be the most reliable method. Refer to Jellby's link and find the repeat character. Then a string consisting of a caret, a space, the repeat character, and a dollar sign should find all of the space-filled lines, no matter exactly how many spaces there are in each one. Replace those with whatever you need, even nothing. You may need to repeat that with the newline character (\n I think) at the end as well, if your page has some odd origin.
Regular expressions are very powerful, very simple in principle, and very difficult to use if you don't use them often. I was once much better at them. I'm way out of practice.
Regards,
Jack Tingle
|