Adding re_pattern var. This now store a string copy of the pattern, while _regex is the compiled pattern
Refactoring tests for the new var re_pattern introduced
Refactoring comment