Python regular matching screen

75 0

Grab human photo album picture
Feature is the data src ="url"url including large and original.
I was.
Flist = re. Data-src = (. *? large_. *? ), str ).
Change to
Flist = re. Data-src = (. *? ( large_ | original_ ), *? ), str ).
The screen is in list. It's a tuple.
How the regular should be written

1 Answers

146 0

Data-src ="http://fmn. Rrimg. com/fmn059/20111102/..
I can't see it, but I didn't find the original.

(?<=data-src=")[^"]*?(?:large_|original_){1}[^"]*?(?=")

It should be possible to find 10 in the link you gave.

...