falotom.blogg.se

Notepad++regex remove whitespace non letters
Notepad++regex remove whitespace non letters






The input 'AA' matches for the same reason. So, if you take a look, the expression is: begins with at least one non whitespace and ends with any number of groups of at least one whitespace followed by at least one non whitespace.įor example if the input is 'A' then it matches, because it matches with the begins with at least one non whitespace condition. Note also that parentheses () groups together the second and third fragments and * at the end means zero or more of this group.

notepad++regex remove whitespace non letters

The starting ^ and ending $ denotes the string.Ĭonsidering the first regex I gave, + means at least one not whitespace and \s+ means at least one white space. If you want to include character restrictions: ^+(\s++)*$








Notepad++regex remove whitespace non letters