I am just learning regex and I\'m a bit confused here. I\'ve got a string from which I want to extract an int with at least 4 digits and at most 7 digits. I tried it as foll
.match will only match if the string starts with the pattern. Use .search.
.match
.search