Hi,
I use this code to match the content in p11 tag, but did not get the right result.
I use this code to match the content in p11 tag, but did not get the right result.
B4X:
Dim text As String
text=$"
<p11><c14>Technology</c14><c0>—Devices or techniques that solve problems or help people carry out everyday tasks.</c0>
<c14>Texture</c14><c0>—The look or feel of an object’s surface layer.</c0>
<c14>Thrust</c14><c0>—A force that pushes objects forward or upward.</c0></p11>
"$
Dim matcher As Matcher
matcher=Regex.Matcher2("<p\d+>.*?</p\d+>",Regex.MULTILINE,text)
Do While matcher.Find
Log(matcher.Match)
ListView1.Items.Add(matcher.Match)
Loop