Bite Sized Learning - Handling Text/Characters

Text Handling using Regular Expressions






Most of you might be handling categorical or text data as well while doing text analysis. Cleaning, extracting meaninful insights from text or characters is critical. Here is a simple python library which helps handle characters easily.

A Regular Expression (RegEx) is a sequence of characters that defines a search pattern. You can specify the rules for the set of possible strings that you want to match; this set might contain English sentences, or e-mail addresses or anything you like.

Click this link for sample codes - RegEx

Some common uses of ReGEx:

  • Finding if email ID is valid
  • Remove special characters from a text
  • Extract numbers from a text
  • Check if entered password matches the password criteria

Comments

Popular posts from this blog

Unlocking the True Cost of Generative AI