Question: Hi, I'm currently working on a spam filter project. Just wondering how can do this (maybe through regex?) such that the texts that will be

Hi, I'm currently working on a spam filter project.

Just wondering how can do this (maybe through regex?) such that the texts that will be retained in my dataset are words defined as: words = any sequence of alphabetic characters [a-zA-Z] delimited by a white space in front and a white space, comma, or period at the end.

kindly provide the exact code please. thanks.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!