Duplicate :
|
Regular expression intersection returns incorrect value when first range is longer than second range. Example below. new RegularExpression("(?[b-d]&[a-r])"); -> returns [b-d] (Correct) new RegularExpression("(?[a-r]&[b-d])"); -> returns [b-de-r] (Incorrect)
|