I've a regex which currently checks for a member number present in a string with memberNo between 6 and 9 in length
(?<memberNo>[0-9]{6,9})
What i need is if i get the input 123a456 that the regex ignores any alphanumeric characters in where the contiguous int values between 6 and 9 are present.
For example these should all match
123456
a123456
123a456
12345a6
etc

(?<memberNo>(?:[a-zA-Z]?[0-9]){6,9})or(?<memberNo>(?:[a-zA-Z]*[0-9]){6,9})