void swap(basic_regex& e);
Effects: Swaps the contents of the two regular expressions.
Postcondition: *this contains the regular expression that was in e, e contains the regular expression that was in *this.
Complexity: constant time.