How to replace new lines and spances in notepad++ using regex? -
i'm trying use regular expression in notepad++ make sql log more readable changing following output:
208797 marie-christine 05-jul-17 208799 nicole saba 06-jul-17 208801 henri hour 06-jul-17
to this:
208797 marie-christine 05-jul-17 208799 nicole saba 06-jul-17 208801 henri hour 06-jul-17
i able replace space, don't know how replace rest.
thank's help.
you make in 2 shots :
(^\s+|\s+$)
replace spaces in start , in end empty (check regex demo)(^.*$)\r\n(^.*$)\r\n(^.*$)
replace each 3 successive lines$1 $2 $3
(check regex demo)
notepade++ eample :
step 1
step 2
Comments
Post a Comment