Added a copy contructor to the regex class. This prevents multiple frees in the destr...