Trimming whitespace and line breaks from DOM text

  • Автор темы Автор темы cobra
  • Дата начала Дата начала

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
 
Replace function in Word processing. {-String.Enter-} with nothing.
 
  • Оценить
Реакции: AtlanticsSurfer
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?
 
Ok, I got it, [ \t\r\n] removes all whitespaces, tabs and line breakes.
 
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
 
There is trim function in word processing
 
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 !
 

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