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
https://stackoverflow.com/questions/66696303/regex-to-ignore-alphanumeric-characters-in-a-string March 19, 2021 at 01:38AM
没有评论:
发表评论