Tutorial  Tools & Languages  Examples  Reference 

Leading and Trailing Whitespace

^[ \t]+|[ \t]+$

Options: ^ and $ match at line breaks

Regular expression analyzed with RegexBuddy.
HTML output from RegexBuddy adapted with a PowerGREP search-and-replace sequence.

Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print