Get character range in Rule