I have a string:
var doi_id= "10.3390/metabo1010001"
And I would like to match only the first serie of digits from the end.
For that, I am using this regEx:
var doinumericpart = doi_id.match(/(\d*)$/);
The "problem" (or not) is that doinumericpart returns
1010001,1010001
instead of 1010001 and I don't know why.
When I am trying this regex here: http://regexr.com?31htm everything seems to work fine.
Thank you very much for the help.
\d*and just have\d*$