php - I need a regular express for notepad++ to remove new line and empty spaces -


here sample text:

a:7:{         i:0;         i:9;     } 

i want new lines , empty spaces removed this:

a:7:{i:0;i:9;} 

so i'm using notepad++ editing , im wondering how above find , replace feature.

press ctrl+h open replace window.

in search mode select regular expression , check "matches newline" checkbox.

in "find what" type - \s

leave "replace with" field empty

select "wrap around" checkbox , hit "replace all"

edit: adding screenshot reference:

enter image description here


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -