expand reg ex shortcuts like \d to [0-9]