pattern-replace: test case insensitive flag