Regular Expressions 101

Edge Case Catcher

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
( 's| 'd)|[[:lower:]](\.|\!|\?) ?"?[[:lower:]]|(\w|"),"?\w|( |^)"?(i|"|'|,|\!|\?|\.)(\s|")|_|(“|”)|\|
/
gm

Description

Identifies rare and unusual typos and other edge cases in files converted to txt from other formats that would otherwise be difficult to single out.

Submitted by lion