[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

you have 5 seconds to explain python's regex to me. go

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 1

File: 1458529752505-sp.jpg (198KB, 796x566px) Image search: [Google]
1458529752505-sp.jpg
198KB, 796x566px
you have 5 seconds to explain python's regex to me. go
>>
>>60776246
For matching / searching / parsing strings.
https://regex101.com/

Easy.
>>
>>60776246
import re
regex = r'YOUR REGEX HERE'
string = 'YOUR STRING HERE'
#use your regex in appropriate re method here
>>
re.compile(above_anons_regex).search(above_anons_string)

# other methods: findall, sub etc.
# further options available if you RTFM
>>
>>60776538
>re.compile

isn't that deprecated since 2.6
>>
>>60776970
>re.gcc, re.clang
>>
>>60776246
>he doesnt realize regex is garbage and not turing-complete
>>
>>60776970
What should be used in place? I always use compile.
>>
>>60776246
1. Don't be black
>>
>>60776246
>pythons regex
regex is fucking regex. learn regex.
>>
>>60776246
Why was Biggie Smalls in Hogwarts?
>>
>>60779242
Lyrical Wizard
Thread posts: 12
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.