Brandon Roots
  • INTERACTIVE
  • FILM
  • ABOUT
  • CONTACT
September 20, 2020

New Skill: Regular Expressions

broots ITP, Programming A to Z

Xkcd.com on regular expressions.

This week I learned something new about the search field in text editing applications. Like using the search or find function to navigate big chunks of text regular expressions allow you to search through a document but also provide a number of modifiers for search functions.

I started my exploration of this new topic by watching tutorials on The Coding Train playlist for regular expressions.

Once I felt comfortable around the basics of regular expressions I tried out RegEx golf which creates a game out of regular creating regular expressions. Like golf the goal is to have the lowest score, so the expressions you create are scored on their length. The shorter and more efficient the better. I made my way through the first few levels, first finding rules in sets, such as selecting words with only characters a-f, or words beginning with a particular character. The later levels were much more puzzling and I was not able to recognize the reoccurring patterns in the sets.

Trying another game the beginning level of Regular Expression Crossword left me deeply confused.

I can see the usefulness of regular expressions and will need to continue my readings and practice of them.

Lab: Analog In with an Arduino Redacting the US Constitution

Related Posts

Fractal Plant – Foiled by  Registers

Homemade Hardware, ITP, Solar Plant

Fractal Plant – Foiled by Registers

Since receiving the PCBs and successfully soldering the board together I have been trying to rewrite code for the I2C port expander. This has been immensely difficult! The Inkplate Arduino Library makes considerable use of an “Mcp” class, which is written to work with the MCP23017 GPIO expander IC. These chips are quite difficult to […]

“Handling” Playtest Week

Handling, ITP

“Handling” Playtest Week

Last week we attended “Playtest Thursday” on the second floor of 370 Jay St with our games. I came away from the experience with some very specific feedback. Seeing a number of people play the game showed me things I didn’t anticipate. Some folks approached the cabinet and immediately treated it as a touch screen. […]

Fractal Plant – Beta Build

Homemade Hardware, ITP, Solar Plant

Fractal Plant – Beta Build

The boards arrived! Amazingly within an hour of one another. Based on the experience I think that JLCPCB is a better value. With shipping OSHPark was $55.50 for 3 boards. JLCPCB was $26.36 for 10 boards. Aside from a higher cost OSHPark also left sharp bits of tabs around the edges of the boards which […]

Recent Posts

  • Fractal Plant – Foiled by  RegistersFractal Plant – Foiled by Registers
    May 9, 2022
  • “Handling” Playtest Week“Handling” Playtest Week
    May 5, 2022
  • Fractal Plant – Beta BuildFractal Plant – Beta Build
    April 24, 2022
Brandon Roots