Regular Expressions 101

Community Patterns

Edge Case Catcher

0

Regular Expression
PCRE2 (PHP >=7.3)

/
( '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 - 3 years ago