mardi 16 octobre 2018

How do I remove a date pattern from a string?

I have a string that's very, very long. It's notes for interactions with clients and I'm trying to clean it up for some text mining. Our employees put the dates into their notes with this format:

mm/d

and it looks like this in the string:

10/8 spoke with client about marketing campaign, 8/20 client requested some changes to 100 campaigns

How would I go about removing all of these dates from the string without removing all numbers? Ideally, my output would look like this:

spoke with client about marketing campaign, client requested some changes to 100 campaigns

Aucun commentaire:

Enregistrer un commentaire