Skip to content

Latest commit

 

History

History

positive-and-negative-regex

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Your task is pretty easy: to write a regular expression that matches

pot
support
Sparta
slap two
respite
deepest
stop-item
a spector

but doesn't match

pt
Pot
pilates
pilot
parachute
spaghetti
tap

Of course, you don't want to hard-code the given examples, because such a solution would not pass the final anti-hard-code-random-value test that uses the same regex pattern you have to find.

Hint: https://rubular.com/r/J2mE8vdhjb will be of great assistance in constructing your regular expression.