Skip to main content

Hi everyone, I’m new to Zapier and Regex and I’m trying to extract a paragraph between multi lines. I’ve tried it on regex101 and it works, but it doesn’t work in Zapier. May I know if anyone can give some advises? Cheers!

 

Please kindly find the details below:

 

Input:

07110613 — Reva Joshi to Deliveroo Only

@HK ASM  Hi,All photos are uploaded except for no matching items.
- 兩三碗車仔麵_油菜
- 兩三碗車仔麵_豬手淨食
- 兩三碗車仔麵_車仔麵
 


View post in Deliveroo:

 

Pattern I used:

(?<=Deliveroo Only\n\n)((.|\n)*)(?=\n\n\nView post)
 

Regex101 screenshot

 

 

Hi @dennis.lau 

You can use a Code step to do this parsing: https://zapier.com/apps/code/help

The split() method will work: https://www.w3schools.com/jsref/jsref_split.asp

 

Code config

 

Code results

 


Thanks Troy! It solves my problem!