Skip to main content
Best answer

Strip Country from an address string

  • January 3, 2024
  • 3 replies
  • 27 views

This should be fairly simple but I’m pulling an address from a text string so I can do a lookup in my database for the correct record.  I need to strip out a portion of that string to complete the lookup.  For example

Input:  1842 White Cedar Drive, Gastonia, North Carolina, United States

Desired result/output:   1842 White Cedar Drive

Best answer by Troy Tessalone

@JPAHub 

Post screenshots with how your Zap Formatter step is configured if you still need help.

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
  • January 3, 2024

Hi @JPAHub 

Try this: Formatter > Text > Split

Split at the ,

Keep the First Segment


  • Author
  • New
  • January 3, 2024

Thank you Troy, I tried that may have part of the rule set incorrectly  I’ll give it another shot.  


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • January 3, 2024

@JPAHub 

Post screenshots with how your Zap Formatter step is configured if you still need help.