I would like to find the best match for this regex-capture group. Example:
Regex: (AB | ABC)
Example: ABCDEF
Result: AB
But I would like to find ABC (best suited from the list of options).
How can I do that? (except for replacing both alternatives in the group)?
Thanks for any idea!
source
share