Create RegEx pattern