where I want to pick out the file paths, in other words four matches.
I first wrote this expression "<img src="(.*)".+?/>" but it matches both
items on the last lines (I don't understand why). I changed it to "<img
src="(.*)"[^>]+/>" but with the same result.
What am missing?
Jean-Christophe Helary
unread,
May 12, 2019, 8:44:21 AM5/12/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bbe...@googlegroups.com
Jan,
both <img src="(.*)".+?/> and <img src="(.*)"[^>]+/> have a "(.*)" that matches the longest string, ie from the first " in the line to the last " in the line.
What you want is something like this: <img src="([^\"]*)".+?/>