Regex Warrior

Hone your regular expression skills with these challenges.

Problem 1/10
Match all occurrences of 'a'

Write a regex to match all occurrences of the character 'a' in the test strings.

Regex Cheat Sheet

  • .Any character except newline
  • \dAny digit (0-9)
  • \DAny non-digit
  • \wAny word character (a-z, A-Z, 0-9, _)
  • \WAny non-word character
  • \sAny whitespace character
  • \SAny non-whitespace character