Fix pointer error in whole_string_match_regex.
Code should look for dollar at end of pattern, not end of text.
Fix pointer error in whole_string_match_regex.

* ccl/pull/481/head:
  Fix pointer error in whole_string_match_regex. Code should look for dollar at end of pattern, not end of text.