copy from 'matcher'. allow comments and spaces in patterns
matcher.pattern. starts from 0