• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Regular expression cheatsheetEdit

Created 12/1/2011, updated 1/10/2025

Perl-compatible regular expression syntax

  • Negative lookahead: foo(?!bar)
  • Negative lookbehind: (?<!foo)bar
  • Positive lookahead: foo(?=bar)
  • Positive lookbehind: (?<=foo)bar
  • regex
  • wiki
  • cheatsheet
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).