cancel
Showing results for 
Search instead for 
Did you mean: 
davidjohnson500
Nintex Newbie

How do I remove all characters after /

Jump to solution

Within a Regular Expressions I would like to remove everything after the last /

Current State

www.mynuptials/confidential/do not read.docx

Desired State

www.mynuptials/confidential

I am trying to dynamically extract a document set name from the document URL

Labels: (1)
0 Kudos
Reply
7 Replies
Automation Master
Automation Master

Re: How do I remove all characters after /

Jump to solution

Are you able to just use web URL?

Reply
davidjohnson500
Nintex Newbie

Re: How do I remove all characters after /

Jump to solution

I'm not home yet....but I recall the WebUrl just gave me the Site Name but did not include the DocSetHome page but I will need to check....I want to be able to dynamically retrieve the DocSetHomePage as I have sever Documnet Sets which will then be placed in an email via a List Workflow.  It was suggested if I can remove the Documnet Name from the URL the result will be the DocSetHome page URL, but the only way I can figure out to do this is by removing all characters between the / / and the the end of the Documnet URL.  

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I remove all characters after /

Jump to solution

Following regex should do the job

\/[\w\s\.]+$
Reply
davidjohnson500
Nintex Newbie

Re: How do I remove all characters after /

Jump to solution

Would I use a split ?   Also what does the below do....I'm not sure if the (.+] bracket is correct

_+\/(.+]\/[*\/]+S

I found the above at https://threewill.com/getting-started-with-nintex/ 

but am having a hard time reading it and understanding

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I remove all characters after /

Jump to solution

no, use 'replace text' with empty text tp replace with

Reply
mlauer
Nintex Newbie

Re: How do I remove all characters after /

Jump to solution

or a little bit shorter:

\/[^\/]+$

View solution in original post

Reply
brightlight
Nintex Newbie

Re: How do I remove all characters after /

Jump to solution

How do i remove everything BEFORE last space?

0 Kudos
Reply