Skip to main content

Hi, I write blog posts.

In each post there are hashtags in the text (not always in the same places).
And I would like to extract ALL the hashtags from my posts.

My trigger is RSS by Zapier. Then I would like to be able to extract all the hashtags from the text.

Maybe with regex, but which code to use please?

Thanks!

For example, in the following text: 
This item is ideal for your #chill, #easter or #spring events. 

I would like to extract “#chill”, “#easter” and “#spring” with Zapier.

With “Formatter by Zapier” > “Text” > “Extract Pattern”, I’ve tried to use the #\w+ Python expression.

But that only returns me the first Hashtag.

What expression should I use to return ALL hashtags please ?

 


Hi @Schizzo - Extract Pattern will only return the first match. 

You might want to consider using my custom integration which can return all the matches:

 

 

 


Hi @ikbelkirasan , wow it works perfectly! 
Thank you very much!