Getting unwanted line breaks and spaces

roadhog

Client
Регистрация
29.07.2011
Сообщения
76
Благодарностей
4
Баллы
8

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Do trim after parsing
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Word processing - Trim
 

roadhog

Client
Регистрация
29.07.2011
Сообщения
76
Благодарностей
4
Баллы
8
Thanks guys
 

roadhog

Client
Регистрация
29.07.2011
Сообщения
76
Благодарностей
4
Баллы
8
I can't get this to work. It is so very simple. Get file with spaces, select trim and leave default settings, make into variable. Save variable into a file. Why is the most simplest function so complicated. The bigger question is why is it creating line breaks in the first place from regex when it's apparent that there is no line breaks to begin with? Honestly I am thinking of giving up on this program. http://screencast.com/t/rGf3Fwiv
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You can read about trim function and how it works here: http://msdn.microsoft.com/en-us/library/t97s7bs3
It works like it should.

If you scrape data and as result get empty lines then you regular expression that you use take these lines. You need to change your regexp.
 

roadhog

Client
Регистрация
29.07.2011
Сообщения
76
Благодарностей
4
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
If you have unnecessary blank lines in result lists after parsing, provide please working example of sourcecode where you parse data from + regular expression that you use.
I will check why that's happen.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)