Regular Expressions 101

Regex EditorCommunity PatternsAccountRegex QuizSettings

Order By

  • Most Recent
  • Most upvotes
  • Most downvotes
  • Highest Score
  • Lowest Score

Filter by Flavor

  • PCRE2 (PHP)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java
  • .NET 7.0 (C#)
  • Rust
  • PCRE (Legacy)
Sponsors
There are currently no sponsors. Become a sponsor today!

Community Patterns

1

ScanSubstring: PCRE2

Created·2026-02-11 16:32
Updated·2026-02-11 16:35
Flavor·PCRE2 (PHP)
Capture the contents of a function, then use (*scs:...) to limit the match results to those whose captured text contains specific text.
Submitted by OnlineCop
1

unnecessary closing HTML tags

Created·2026-02-25 17:44
Flavor·PCRE2 (PHP)
Selects the ` and ` tags from a string. You can probably do this with something easier, but this works
Submitted by Twineee