Regex for white space and then line end

Jack Kada picture Jack Kada · Feb 15, 2010 · Viewed 31.5k times · Source

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

Answer

soulmerge picture soulmerge · Feb 15, 2010

According to this blog post on wordpress.com, it's

^[[:space:]]*$