Skip to main content
Nintex Community Menu Bar

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

  • March 31, 2016
  • 2 replies
  • 24 views

Forum|alt.badge.img+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

Forum|alt.badge.img+4
  • March 31, 2016

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.


Forum|alt.badge.img+3
  • Author
  • March 31, 2016

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