Answer the question
In order to leave comments, you need to log in
How to pull out a regex?
There is an html page where I want to pull out the number 11.
type="hidden"
name="data[map_zoom]"
value="11" />
<input
Pattern pMapZoom = Pattern.compile("name=\"data\\[map_zoom\\]\"\\r\\n\\tvalue=\"(.*?)\"");
Answer the question
In order to leave comments, you need to log in
you can't use xpath? in xml it is not quite correct to use regular expressions./hidden(.*?)value="(.*)?"/s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question