Tutorial
Tools & Languages
Examples
Reference
Leading and Trailing Whitespace
^
[ \t]
+
|
[ \t]
+
$
Options: ^ and $ match at line breaks
Match either the regular expression below (attempting the next alternative only if this one fails)
Assert position at the start of the string or after a line break character
Match a single character out of the list: one of the characters " ", or a tab
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Or match regular expression number 2 below (the entire match attempt fails if this one fails to match)
Match a single character out of the list: one of the characters " ", or a tab
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Assert position at the end of the string or before a line break character
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print