What regex to use for ^\s* function?

nycdude

Пользователь
Регистрация
06.05.2018
Сообщения
57
Благодарностей
1
Баллы
8
Hello,

I'm trying to find/replace with regex all the blank spaces and lines of a variable and remove them with replacing with nothing. I'm using text processing for the variable and I'm using regex that works in the regex builder and online regex testers and notepad++ too.

But it won't work in ZP, is there a better way? It kind of worked on only one line (see pic).



Код:
TRENDING:
   
   Donald Trump
North Korea


     
    By Rebecca Kheel -  05/06/18 10:30 AM EDT
   
    2,658   

       
         McCain says he regrets picking...
       
              Sen. John McCain (R-Ariz.) said he regrets choosing former Alaska Gov....         

       
         Nikki Haley says she won’t defend...
       
              U.S. Ambassador to the United Nations Nikki Haley said on Sunday that she...         

       
         Obama, Bush to give eulogies at...
       
              Former Presidents George W. Bush and Obama are expected to deliver...         

       
         GOP faces internal battle over...
       
              Senate Republicans are battling over whether to use the so-called nuclear...
It won't get the rest blank lines and and blank spaces before text

Thank you
 

LmPopo

Client
Регистрация
06.12.2012
Сообщения
299
Благодарностей
136
Баллы
43
  • Спасибо
Реакции: nycdude

nycdude

Пользователь
Регистрация
06.05.2018
Сообщения
57
Благодарностей
1
Баллы
8
Yes! That worked thank you very much. Now I realize there's blank spaces after the lines of text, anyway to trim that off too?

Really appreciate the help.
Also, is there any special reference for ZP regex? Seems it's different to me from regex I'm used to with notepad++.
 

LmPopo

Client
Регистрация
06.12.2012
Сообщения
299
Благодарностей
136
Баллы
43
  • Спасибо
Реакции: nycdude

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