For my first adventure into the world of regular expressions, I made a few interpretations of the “Trouble with Tribbles” script from the original Star Trek television show. The source code can be found here. I looked for tribbles, stage directions, questions, and exclamations. This is one of my favorite results:
UHURA: (coldly)
JONES: (entering)
KIRK: (shows Chekov the packet of wheat)
SPOCK: (stroking a tribble)
BARMAN: (starts producing tribbles from all over the place and putting them on the bar)
SCOTT: (big grin)
MCCOY: (scanning him)
KIRK: (shouting)
KIRK: (a whisper)
More results:
–one word stage directions
–all stage directions
–names with stage directions
–tribbles in stage directions
–one word questions
–questions and exclamations