Sort-O-Matic: SHHC20
Sort-O-Matic
 

In the workshop beside Minty Candycane is the Sort-O-Matic.

In talking with Minty, he mentions needing help fixing a regex to sort toys.

Redis Bug Hunt
 

When you access the Sort-O-Matic, it presents you with eight regex challenges that you need to solve to sort the presents.

Sort-O-Matic
 

The answers for each of the regex challenges is as follows:

Matches at least one digit.
\d+

Matches 3 alpha a-z characters ignoring case.
[a-zA-Z]{3}

Matches 2 chars of lowercase a-z or numbers.
[a-z0-9]{2}

Matches any 2 chars not uppercase A-L or 1-5.
[^A-L1-5]{2}

Matches three or more digits only.
^[0-9]{3,}$

Matches multiple hour:minute:second time formats only.
^[0-2]?[0-9]{1}:[0-5]{1}[0-9]{1}:[0-5]{1}[0-9]{1}$

Matches MAC address format only while ignoring case.
^([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}$

Matches multiple day, month, and year date formats only.
^[0-3]?[0-9]{1}(\/|.|-)[0-1][0-9]{1}(\/|.|-)[0-9]{4}$

An overview of all people, places, and events can be learned in the Introduction.

×