May I know how could I extract the file name without the file extension. (i.efilename
)
from the {WorkflowVariable:File URL} example:
http://spsite:111/sites/Annual_Leave/Shared%20Documents/filename.pdf
using Regular expression pattern??
been trying /[^/]+/[^/]+(?=/[^/]*$)
but it doesnt seem to work.. thanks!!!!!
If you are using the extraction type step, use
[^/]+(?=\.[^.]*$)
See the regex demo.
Details:
[^/]+
- 1 or more characters other than /
(?=\.[^.]*$)
- followed with a dot that is followed with 1 or more chars other than a dot and then the end of a string.