Extra Regex Examples

Back to Regex 101

Example #1

AUDIO SLIDE

In the first example, we've gotten very lucky and have quickly narrowed down the possibilities.

a) Green Letters

AUDIO SLIDE

By the second line, we've already managed to confirm three letters. Let's go ahead and enter that into our tool. In accept only matches mode, we can put in the regex ide$ or ..ide to accept only words that end with those three letters.

b) Grey Letters

AUDIO SLIDE

Next we will switch to remove matches mode and remove all the words which have any of the grey letters with this regex: [auosl].

c) Results

That leaves only these possibilities: bride, chide, gride, imide, pride, tride As you can see, we have rapidly narrowed the field, and only a few viable options remain.

Example #2

AUDIO SLIDE

In this example we have less information available.

a) Green Letters

M S

Our first regex will be similar to the first example, confirming the position of the S in this case.

^s in accept only matches mode means that all the words will start with an S.

b) Grey Letters

AUDIO SLIDE

Likewise, we'll next remove the grey letters.

In remove matches mode, we'll enter [adiolide].

Note that we have repeated i and d twice each in the regex, but this is not a problem. Repeating the same letter multiple times in a character class has no effect.

c) Yellow Letters

AUDIO SLIDE

There is one more piece of information that we can use to filter, which is U from the first line.

We know that there must be a U, and that it must not be in the second position.

We will start with the most simple one:
The regex u will match words which have a u, and will not match those that don't. The correct mode is accept only matches.

For the position of the U, there are several valid options. A few will be presented below:

d) Results

And finally, here are the remaining words, once we've used all of the information available:

scrub, scrum, scuff, scuft, scugs, scums, scups, scurf, scurs, scuts, scuzz, shrub, shrug, shtum, shtup, shuck, shuns, shunt, shush, shuts, skugs, skunk, skyfs, skyrs, smugs, smurs, smush, smuts, snubs, snuck, snuff, snugs, snush, sprug, spugs, spumy, spunk, spurn, spurs, spurt, strum, strut, stubs, stuck, stuff, stumm, stump, stums, stung, stunk, stuns, stunt, sturt, stymy, swung, synch, syncs, synth, syphs, syrup

Example #3

AUDIO SLIDE

In this example, we have not managed to confirm the position of any letters at all.

a) Grey Letters

AUDIO SLIDE

First things first, eliminate the grey letters from consideration.

Simple and straightforward.

b) Yellow Letters

AUDIO SLIDE

There are several viable strategies for dealing with the yellow letters. Only one will be laid out here.

The first step will be to simply mark the letters as required.

Next we will constrain the positions of the letters.

c) Results

bigly, bilby, bilgy, billy, filch, filly, filmi, filmy, filth, fitly, gibli, gilly, gilpy, girly, hilch, hilly, hiply, imply, kilty, libri, lichi, licht, light, limbi, limby, linch, lingy, linky, linny, linty, lippy, milch, milky, milty, miltz, mirly, nirly, pilch, tilly, tilth, villi, vinyl, willy, zilch

Back to Regex Help Sheet

Back to Wordle Assistant