Skip to main content
Best answer

Extract Text After a specific word from body/subject line of email | Python?

  • December 14, 2022
  • 3 replies
  • 898 views

Hi, 

 

I’m receiving emails from a specific source with the same subject lines besides the leads name. 

Example “…….. Inquiry From John d”. I want to be able to extract the name/text after the word “from.”

Currently, I’m trying to use Formatter by Zapier. However, I don’t know Python :) 

 
The goal is to create a lead name for Pipedrive. 

 

Thanks!

Best answer by Agent Shablool

Thanks! 2 seconds after I made the post I played around and that exact thing worked lol. 

In case it helps anyone I’ve added the screenshot below

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34052 replies
  • December 14, 2022

Hi @Agent Shablool 

Good question.

Try using Formatter > Text > Split and keep the 2nd segment.


  • Author
  • New
  • 1 reply
  • Answer
  • December 14, 2022

Thanks! 2 seconds after I made the post I played around and that exact thing worked lol. 

In case it helps anyone I’ve added the screenshot below

 


rachael.silvano
Forum|alt.badge.img+7
  • Zapier Staff
  • 386 replies
  • December 15, 2022

Hey there @Agent Shablool - thanks so much for sharing what worked! I’ll go ahead and mark your response as best answer, please let us know if you have any other questions and we’re happy to help. 

 

Best,

Rachael