Cucumber Regular Expressions Cheat Sheet

Regular expressions are a big part of what makes Cucumber tests both expressive in English and DRY on the automation side. To make the most of that power, you have to know something about regular expressions.

I’ve created a cheat sheet for my Cucumber class workbook based on last year’s “Just Enough Regular Expressions for Cucumber” post. Download and print a copy to post by your computer until regular expressions become natural for you:

Cucumber Regular Expressions Cheat Sheet


Leave a Reply

Your email address will not be published. Required fields are marked *

Richard Lawrence

Is co-owner of Agile For All. He trains and coaches people to collaborate more effectively with other people to solve complex, meaningful problems. He draws on a diverse background in software development, engineering, anthropology, and political science. Richard is a Scrum Alliance Certified Enterprise Coach and Certified Scrum Trainer, as well as a certified trainer of the accelerated learning method, Training from the Back of the Room. His book, Behavior-Driven Development with Cucumber, was published by Addison-Wesley in 2019 (for more information, visit

Connect Twitter LinkedIn Subscribe to RSS Feed Blog posts by this author