Jun 25, 2008, 4:48 AM
Post #3 of 3
Re: [BorisE] Optimising a regex for stripping unwanted whitespace
[In reply to]
This is forum related to RegExp, but I have a different soultion to your problem without using RegExp.
You can split your file using "\n" character and hence u will get each line in an array element. Traverse through the array and create a new file with the same XML tags keeping a "\n" whever required...