ruby - Matching multiple parts of a string as first match -
given following string:
details.html?id=8220&inr=4241&marke=ford&modell=focus&art=gebrauchtwagen&standort=
i need match 82204241
in single expression. need extract numbers single match. idea how can solved?
(\d+)
create 2 matches. tried without luck: details\.html\?[id=|.*inr=]+(\d+)
regex matches substring of original string. since 82204241
not appear substring in original string, impossible match single match regex.
Comments
Post a Comment