Nerd alert: Trimming Leading/Trailing Whitespace with Regular Expressions

Find leading whitespace: ^[ t]+

Find trailing whitespace: [ t]+$

This entry was posted in computers/programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *