[or_regex] fix clang analyzer warning
Merge pull request #286 from cgzones/os_regex_warning

[or_regex] fix clang analyzer warning