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

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -