Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I am awful with regex

Name: Anonymous 2009-08-12 22:27

I'm trying to make a simple script in python to fetch a thread's (nonthumbnailed) images and save them to a folder.  I've got most of it done, but I am AWFUL with regex.  I just need a way to convert, for example:

<span title="Jan24th.jpg">Jan24th.jpg</span>)</span><br><a href="http://cgi.4chan.org/s/src/1250128463143.jpg" target=_blank>

Into

>Jan24th.jpg
and
>http://cgi.4chan.org/s/src/1250128463143.jpg

Name: Anonymous 2009-08-12 22:34

<span title="[^"]*">([^<]*)</span>\)</span><br><a href="([^"]*)" target=_blank>

\1 will be Jan24th.jpg, \2 will be http://cgi.4chan.org/s/src/1250128463143.jpg.

Name: Anonymous 2009-08-12 22:56

Try regexes.

Name: Anonymous 2009-08-12 22:59

>>3
The plural of ``regex'' is ``regices''.

Name: Anonymous 2009-08-12 23:28

The plural of ``regex'' is ``regexen''.

Name: Anonymous 2009-08-12 23:34

Now you have three pluralization's.

Name: Anonymous 2009-08-13 1:51

your all fcking idiots

Name: Anonymous 2009-08-13 9:28

>>3-5
i call them regexexes

Name: Anonymous 2009-08-13 9:34

>>1
python

Now you have 2 problems.

Name: Anonymous 2009-08-13 10:44

regii

Name: Anonymous 2009-08-13 10:48

REGEGOI

That's English for ρεγεγοι

Name: Anonymous 2009-08-13 17:02

Silly progger, regex's are for text. Use BeautifulSoup.

Name: Anonymous 2009-08-13 17:06

>>11
My mother was a saint!

Name: Anonymous 2009-08-13 17:20

>>13
She never had sex, ever!

Name: Anonymous 2009-08-13 17:58

>>11
ρεγεγοι
Did you mean ργιλοη?

Name: Socrates 2009-08-13 17:59

>>15
How do you even pronounce that I don't even

Name: Anonymous 2009-08-13 18:35

>>16
Rgiloe.

Name: Anonymous 2010-12-20 18:30

Name: Anonymous 2011-02-04 18:43

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List