New topic Closed topic
avatar image
2
Help with regex expression
By Created , last editted

I have an working fileupload. I save the value of the file input in a file property and in and single line text property, to be able to get the original filename of the uploaded file.

Unfortunately the "filename" is saved as:https://assets.bettyblocks.com/bwb_temporary_assets/[GUID]/[filename].[extension]

I managed to retrieve the file name using a split function in a collection variable and using a text expression to retrieve the 5th element (filename).

But I also noticed that you can you us a regex to retrieve all characters after the last forwards slash: "

[^/]+$

Question: How can I use the regex expression to get the filename by the regex above?


I have an working fileupload. I save the value of the file input in a file property and in and single line text property, to be able to get the original filename of the uploaded file.

Unfortunately the "filename" is saved as:https://assets.bettyblocks.com/bwb_temporary_assets/[GUID]/[filename].[extension]

I managed to retrieve the file name using a split function in a collection variable and using a text expression to retrieve the 5th element (filename).

But I also noticed that you can you us a regex to retrieve all characters after the last forwards slash: "

[^/]+$

Question: How can I use the regex expression to get the filename by the regex above?

  • Avatar image
    I have a similar question, I cannot find any documentation on how to use regex expressions
    By
  • Login to reply
Answers
Sort by:

This topic is closed.