I would like to extract a text using Regex that is between 1 and 8 chars and does not contain more than 2 letters ([A-Za-z]).
For example:
Valid: "12A-32B" from the text "Register:12A-32B Index:A"
Invalid: "12 Index" from the text "Register:12 Index:A"
In this example, the extracted text should have the text "Register" as a boundary.
I tried using positive/negative lookahead but to no avail.
Thank you.