I've recently been messing around with a Firefox extension that lets you replace text on websites based on matching text or a regular expression
So my first instinct was to look at Scientific American and replace the word "AI" with "the wizards"

seen from Malaysia
seen from United Kingdom
seen from China
seen from China

seen from Canada

seen from United States

seen from China
seen from United States
seen from Switzerland
seen from United States
seen from Australia
seen from South Korea
seen from Japan
seen from United States

seen from United States

seen from Hong Kong SAR China

seen from Türkiye

seen from Türkiye

seen from Maldives

seen from Singapore
I've recently been messing around with a Firefox extension that lets you replace text on websites based on matching text or a regular expression
So my first instinct was to look at Scientific American and replace the word "AI" with "the wizards"
Fun with LazyTown transcript data
I downloaded transcripts of all 78 episodes of LazyTown and have been having fun using regular expressions with the SublimeText search function to look stuff up, because yes, I am that nerdy. :D
Unfortunately, the transcripts aren't perfect, as I think they might have been ripped from Youtube's auto closed-captioning feature. (For example, several episodes feature a character named "Sporticus.") But they saved me the trouble of transcribing each episode myself, and beggars can't be choosers. Anyway!
Robbie refers to Sportacus as an elf 7 times, across six episodes.
The word "apple" appears 129 times, across 37 episodes.
Times Robbie (or anyone else) refers to his Rotten Plans™ as "schemes": exactly 1 (and it's in the very last episode, too).
Most common nickname by Robbie for Sportacus in season 1: Sportakook (research is ongoing for seasons 2-4, but preliminary data suggests Sportaflop takes the crown in season 3).
Blue insults include: blue-suited blowhard blue buffoon blue elf blue jumping kangaroo blue typhoon blue snoop blue cartoon
Ways the transcriber spelled "diggiriggidong": diggiriggidong digga-rigga-dong digga-wigga-dong digga-rigga-dog digga digga dung diggi-riggi-dong digga-digga-dong dig-a-brig-a-dong dingi-riggi-dong digga bigga dong diga-wiga-dong dingaringa-dong dig-a-rig-a-dong diggiriggi dong
Example of searching for Sport- nicknames below the cut
some kind of day at the codeblr discord server
@orthogonal-slut @b8horpet @moose-mousse
the full series
Im going over regex fundamentals and if anyone could help I'm having trouble with this lesson:
RegexOne provides a set of interactive lessons and exercises to help you learn regular expressions
I even had the solution it says is correct but it seems to not be accepting it?
Wait, forgot to escape a space. Wheeeeee[taptaptap]eeeeee!
Regular Expressions [Explained]
Transcript Under the Cut
I am a little confused why I never hear about regex libraries compiling regexes to a list of function pointers.
From my naive initial think at the problem, seems like you could save a lot of branches that way; a good middle ground between
the usual approach of compiling to an intermediate representation which is only more-efficiently interpreted, and
the heavyweight approach of JIT-compiling the regex to actual machine code.
did you know Go's regex engine has a repetition limit? me either! that & more in my new journal entry :3
Recently while working on a passion project with a friend, this project is a simple hash detector but written in Go. We were porting a large