Regular Expressions 101

preprocess text files to include only readable and text words

Open Workspace
  • Python
  • Match
2

Regular Expression

r"
^\W|^\d|^[A-Z ]+$|^[tT]able.+|^[Ff]igure.+|^[fF][aA][Xx].+|^[Ee]mail.+|^EMAIL.+|\.[\w]+\.|\d[\+\-\\\*\/]\d|[\(\)\+\-\\\*\/] [\(\)\+\-\\\*\/]
"
mg

Description

for large corpus cleaning

Submitted by aliabbas petiwala