Regular ExpressionsEvery metacharacter worth knowing, with what it matches.ComputingWorks in JavaScript, Python, Ruby and most modern engines.Characters. – any character\d – digit\w – letter, digit or _\s – whitespace\D \W \S – the opposites[abc] – any one of a, b, c[^abc] – anything except[a-z] – a rangeRepetition* – zero or more+ – one or more? – zero or one{3} – exactly three{2,5} – two to five*? – lazy — as few as possiblePosition^ – start of string$ – end of string\b – word boundaryGrouping(...) – capture(?:...) – group, no capture(?<name>...) – named capturea|b – eitherEscape a literal dot, question mark or bracket with a backslash. In acharacter class, most are already literal.Regular Expressionslearnposters.com
Regular Expressions — printable computing wall chart from LearnPosters. Free vector PDF, US Letter and A4.

What’s on the Regular Expressions poster

21 entries in 4 groups.

Works in JavaScript, Python, Ruby and most modern engines.

Escape a literal dot, question mark or bracket with a backslash. In a character class, most are already literal.

Questions about the Regular Expressions poster

What’s on the Regular Expressions poster?
21 entries in 4 groups. Works in JavaScript, Python, Ruby and most modern engines. Characters: . – any character, \d – digit, \w – letter, digit or _, \s – whitespace,…; Repetition: * – zero or more, + – one or more, ? – zero or one, {3} – exactly three,…; Position: ^ – start of string, $ – end of string, \b – word boundary; Grouping: (...) – capture, (?:...) – group, no capture, (?<name>...) – named capture,…. Escape a literal dot, question mark or bracket with a backslash. In a character class, most are already literal.
Who is the Regular Expressions poster for?
Regular Expressions belongs to the Computing section rather than to a school year, because computing is not something one grade owns. Anyone learning tools can pin it up — a beginner, a student mid-course, or someone revising years later.
When should you use the Regular Expressions poster?
Build the pattern one piece at a time and test each piece. A regex written in one go is a regex you cannot debug. A wall chart earns its place by being glanceable from where the work is happening, so Regular Expressions belongs on the wall where that computing work actually happens, within glancing distance, rather than filed away.
What other posters go with Regular Expressions?
Code Review, Debugging Method and Docker Basics sit alongside Regular Expressions in the Computing section. Printed together they make a wall rather than a single sheet, which is how a reference set actually gets used.Code ReviewDebugging MethodDocker Basics
Is the Regular Expressions poster free to download and print?
Yes. Regular Expressions downloads as a free PDF with no account, no email and no watermark, like everything else in the Computing section. Print as many copies as you like for a home, a classroom, a library or a tutoring group; reselling the file is the only thing the licence rules out.Read the licence
What size does the Regular Expressions poster print at?
Regular Expressions is a vector PDF laid out for US Letter, and prints on A4 with Fit to page — the same file, no separate download. Because every mark on it is drawn rather than photographed, it stays sharp enlarged to A3, A2 or A1 at a copy shop. Colour carries emphasis only, so a greyscale print of Regular Expressions loses nothing.Printing guide

Related posters

Charts that sit alongside Regular Expressions on the same wall.

Browse every Computing poster, or start from the full catalogue.