changed the character regex to prevent clashes with user-defined
wildcards