so I'm using 3rd party application that uses regex to get matches. It is automatically set to match only the first match since it only looking for one piece of information per page. I cannot change this setting unless I want it to find all matches to be display as an array which I rarely want it to do. That last condition doesn't apply to the match I want.
What I want it to find are ID codes. It just so happens that all the IDs start with 10 and are followed by 4 more numbers
Example:
104230
So I wrote this regex
10[0-9]{4}
The only problem with this is that there is a .js file in the header that is named 10022008.js and since it automatically chooses the first match, all the IDs get set to this.
How do you get regex to ignore that string of numbers and that string only? All the searches I have done only similar ignore type codes have not worked
.follow any of them? The simple solution is to use\sin the pattern as\s+10[0-9]{4}\s. Post some examples of where the ids would occur.extract ruleswith them and YOU NEED to tag a REGEX question with the langauge that you are using!!