Search code examples
regextextpad

Regex for white space and then line end


I am struggling to find this - I need to strip all empty lines which might have white space before them

The alternative is messing about in Excel - I am using TextPad


Solution

  • ^\s*$
    

    If you've got perl-compatible regex.