• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Extract pattern is not working

Kenny

Member
I have a text like this below:

0209.jpeg (https://dl.airtable.com/.attachment...9d1d4/WhatsAppImage2022-05-21at6.46.34PM.jpeg)

And i want to extract using below regex:
https:\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])

What is got from the result is like this below:
["https:\/\/dl.airtable.com\/.attachments\/c0fa86539533bd72c33d1d1a4d07b8fc\/fc660906\/0209_result.jpg","dl.airtable.com","\/.attachments\/c0fa86539533bd72c33d1d1a4d07b8fc\/fc660906\/0209_result.jpg"]
1653182774476.png



From REGEX 101, i got the result i want:
1653182837567.png
 
P

Pabblymember11

Guest
Hey @Kenny

If you want simply want to extract the image URL from the text then you can use "Text Formatter by Pabbly: Text (Basic Formatting)" which will extract the URL for you.

2022-05-23_12h01_33.png
 
P

Pabblymember11

Guest
Hey @Kenny

Since you are getting the response in advance the URL is in the array, so you can use the Iterator action step or Line Itemizer action step in your workflow to get it once by one or in commas separated.
 

Kenny

Member
Hey @Kenny

Since you are getting the response in advance the URL is in the array, so you can use the Iterator action step or Line Itemizer action step in your workflow to get it once by one or in commas separated.
Before i go any further, would you mind telling my why there is discrepancy between Pabbly and Regex101?
 

fgsrdsg

Member
It seems there is a bug in general. I also have problems with my Text Parser:
 
P

PabblyMember3

Guest
Line Itemizer accepts an array of objects with identical keys. It won't work with the direct array of avlues.

1653455106410.png


Please pass the array of objects with proper keys as shown in the above screenshot. It will work.
 

Kenny

Member
So, why i can't extract patterns using text extractor (it shows different results from regex101) ? It will simplify my usecase?
 
P

PabblyMember3

Guest
Can you share the string that you are extracting using REGEX and the expected result of the same?
 
P

PabblyMember3

Guest
There is a bit difference in the result. Also, I've checked the same https://www.phpliveregex.com/ and it shows a different result.

I would request you try a different REGEX to obtain the expected result.
 
Top