K kohle Active Member Licensed User Longtime User Apr 16, 2015 #1 Hi, I didnt find it in the forum, so I ask : <span>bfbfbfb </span> In one line, I get it with the pattern : <span>(.*?)</span> When I have : <span>Test1 Test2 Test3 </span> I dont get it. I know the dot is for reading until Linebreak. But how I can read over more lines in B4a rgs Jürgen
Hi, I didnt find it in the forum, so I ask : <span>bfbfbfb </span> In one line, I get it with the pattern : <span>(.*?)</span> When I have : <span>Test1 Test2 Test3 </span> I dont get it. I know the dot is for reading until Linebreak. But how I can read over more lines in B4a rgs Jürgen
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2015 #2 Here: B4X: Dim s As String = $"<span>Test1 Test2 Test3 </span>"$ Dim m As Matcher = Regex.Matcher("<span>(.*\n)*</span>", s) If m.Find Then Log(m.Match) End If Upvote 0
Here: B4X: Dim s As String = $"<span>Test1 Test2 Test3 </span>"$ Dim m As Matcher = Regex.Matcher("<span>(.*\n)*</span>", s) If m.Find Then Log(m.Match) End If