How do you split 2 URLs if there is no delimiter in the string

  • 31 March 2016
  • 2 replies
  • 6 views

Badge +3

I have a Call Web Service action that does a GetAttachmentCollection method.  The results are:

https://website.com/SiteDirectory/Department/Lists/TradeShowRequest/Attachments/284/Excelsheet.xlsxhttps://website.com/SiteDirectory/Department/Lists/TradeShowRequest/Attachments/284/textfile.txt

How can I split the 2 URLs if it does not have a delimiter after the first URL?    I want to split it right after Excelsheet.xlsx and before the next https.  Please help.


2 replies

Badge +4

I am not a reg ex pro, but try something like this in a regular expression.  (?=https) with it set to split.  Should store each URL in a collection variable.

Badge +3

Perfect!  Except I modified it a bit with (?=https|http) to catch any https or http filepath.  Thank you Parker!

Reply