Trimming whitespace and line breaks from DOM text

cobra

Client
Регистрация
06.09.2011
Сообщения
11
Благодарностей
0
Баллы
0
Does anybody know how to remove all whitespaces and line breaks from the DOM text. I tried different RegEx but non has worked so far. Thanks
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Replace function in Word processing. {-String.Enter-} with nothing.
 

cobra

Client
Регистрация
06.09.2011
Сообщения
11
Благодарностей
0
Баллы
0
Thanks for your answer. I got the part where I have to replace all occurrences with nothing, but what do I have to look for. What RegEx finds all whitespaces and all line breaks?
 

cobra

Client
Регистрация
06.09.2011
Сообщения
11
Благодарностей
0
Баллы
0
Ok, I got it, [ \t\r\n] removes all whitespaces, tabs and line breakes.
 

neomatic

Client
Регистрация
27.10.2011
Сообщения
64
Благодарностей
8
Баллы
8
Hi,
Could you explain where did you add [ \t\r\n] since i probaly not using it correctly, 'cause it doesn't work for me.
Please give an example if not too much to ask.
Cheers
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
There is trim function in word processing
 

neomatic

Client
Регистрация
27.10.2011
Сообщения
64
Благодарностей
8
Баллы
8
Where do you see it in ZennoPOster3, in Strings processing, there 're substring, replace, insert, to uppercase, to lower, split, count o f chunks, remove dup, enter covert, spintax and tranlitiration of Russian. Don't see trim Bulldozer !
 

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