Regex Pattern to Grab Data between a href Tag with limited characters ignoring numbers
I need a regex pattern to match any text that comes between:
<a href="https://website.com">Health & Beauty</a>
that may or may not include a space and/or special character "&" but it should not contain any numbers. It should also not exceed the character limit from 4 to 10. In said case, I would want to extract:
Beauty & Fashion
I was advised to use the following pattern:
(?<=&|>)([^&\r\n]{4,10}(?=&|<\/a>))*
It worked great but now the problem is how to make the pattern that will ignore everything that contains the number within tags like
<a href="#">January 2019</a>