• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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
 

Supreme

Well-known member
Staff member
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
 

Supreme

Well-known member
Staff 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.
 

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