Joey Sim
Joey Sim

Reputation: 55

Nintex Regular expression Pattern regex

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!!!!!

Upvotes: 1

Views: 1550

Answers (1)

Wiktor Stribiżew
Wiktor Stribiżew

Reputation: 627103

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.

Upvotes: 2

Related Questions