Add integration test for regex flag. #13