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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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