Jump to content
  • 0

Fetching part of URL


Pumpedplop

Question

So I have this problem that I have saved a series of URL's , but I need a specific part of said url (marked  in the picture).  I can not share the complete URL but the most left e you can see, is from the ".be" of the url. 

Does anyone know a solution?

(I can't do it manually because there are already 1300 entries)

Schermafbeelding 2023-05-24 164223.png

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hello @Pumpedplop,

In case the URL always ends with '_.pdf' and those digits to be retrieved are always placed before this '_.pdf', please test the following formula:

REVERSE(SUBSTRING(REVERSE([@field:Company]), 6, CHARINDEX('_', REVERSE([@field:Company]), 6) -6))

Please replace the Company field with your field name.
For example:

R9ONhkt.png

Output:

1KptyZI.png

Link to comment
Share on other sites

  • 0

So if you use the replace function, and change the starting value to 5 you should be able to make this work.

REVERSE(SUBSTRING(REVERSE(REPLACE([@field:test],'_.pdf','.pdf')),5, CHARINDEX('_',REVERSE(REPLACE([@field:test],'_.pdf','.pdf')),5)-5))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...