Skip to content

Instantly share code, notes, and snippets.

@jeystaats
Created February 9, 2020 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeystaats/88ec4fa505d2a34caf2602c5da2cf805 to your computer and use it in GitHub Desktop.
Save jeystaats/88ec4fa505d2a34caf2602c5da2cf805 to your computer and use it in GitHub Desktop.
Regex for detecting criminal names
[A-Z]+[a-zA-Z^\p{L}\p{M}]++\s[a-zA-Z]\.\s
@jeystaats
Copy link
Author

Will find words in sentences and texts like : "Bob B." or names with special characters like "Edúardo C."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment