Retired

Positive & Negative Regex (retired)

Description:

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: http://rubular.com/r/J2mE8vdhjb will be of great assistance in constructing your regular expression.

Fundamentals
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Strings

Stats:

CreatedMar 3, 2018
Warriors Trained176
Total Skips58
Total Code Submissions205
Total Times Completed18
Java Completions18
Total Stars0
% of votes with a positive feedback rating38% of 12
Total "Very Satisfied" Votes3
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes6
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • lion999 Avatar
Ad