Add support for character ranges in regex patterns