Android Question [SOLVED] Ah that regex... Extract a link from html

sorex

Expert
Licensed User
Longtime User
try ("src=""(.*?)"" ") with result 1 in the array, not 0.

if B4A supports this regex matches method
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
Upvote 0

sorex

Expert
Licensed User
Longtime User
weird because when I enter it in Erel's tool (nice testing tool) and only changing the double double quotes to a single double quote it gives the same result as Erel's.

I use that in a vb program aswell so it's correct.
 
Last edited:
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
weird because when I enter it in Erel's tool (nice testing tool) and only changing the double double quotes to a single double quote it gives the same result as Erel's.

I use that in a vb program aswell so it's correct.
You are right, by modifying it a little bit, it gives the same result as Erel's code
src="(.*?)" same result as src=\"([^"]+)
Thank you
 
Upvote 0
Top