Regular Expressions 101

Quiz_6_Broken_Keyboard

Open Workspace
  • PCRE2 (PHP)
  • Match
2

Regular Expression

/
(.)\1{2}
/
g

Description

Oh no! It seems my friends spilled beer all over my keyboard last night and my keys are super sticky now. Some of the time whennn I press a key, I get two duplicates.

Can you ppplease help me fix thhhis?

Substitute with $1

Submitted by Anonymous