Brandon Roots
  • FILM
  • INTERACTIVE
  • 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

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 […]

Fractal Plant – Beta Build

Homemade Hardware, ITP

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 […]

Fractal Plant – Boards Ordered

Homemade Hardware, ITP

Fractal Plant – Boards Ordered

Over the last week I rerouted the traces in my PCB design. Following feedback during class that the auto-router feature in Eagle isn’t very smart I did manage to make some cleaner routing manually. As part of the process I went through each component and made sure they were placed a closely as possible to […]

Recent Posts

  • Fractal Plant – Foiled by  RegistersFractal Plant – Foiled by Registers
    May 9, 2022
  • Fractal Plant – Beta BuildFractal Plant – Beta Build
    April 24, 2022
  • Fractal Plant – Boards OrderedFractal Plant – Boards Ordered
    April 18, 2022
Brandon Roots
Accessibility by WAH