Skip to content

Concept preview by SkillEra.IO, LLC. These sites have no accounts or forms; analytics and the external contact page are covered in Privacy.

Regex Practice

Experimental

Write one regular expression that matches these lines and skips those. Hidden test lines check that it follows the rule, not just the examples. JavaScript flavour; new to regex? Start with MDN's regular expressions guide (opens in a new tab).

Mentions of an invoice

Basics

Match every line that mentions an invoice, however it's capitalised.

JavaScript regex syntax, without the slashes. A line counts as a match if the pattern is found anywhere in it.

Flags

Should match

  • Invoice 2041 is attachedNot tested yet
  • Please pay the invoice by FridayNot tested yet
  • INVOICE REMINDERNot tested yet
  • Two invoice copiesNot tested yet

Should skip

  • Receipt 2041 is attachedNot tested yet
  • Please pay by FridayNot tested yet
  • Quote for MarchNot tested yet
  • In voice mail, see notesNot tested yet

Result

Press Check to test your pattern on every line, including hidden ones.

Patterns run in your browser, in a background worker with a time limit; nothing you type leaves the page. Checked in Chrome and Edge 120 or later; other browsers aren't verified. If the pattern checker can't start, the page says so.