Jump to content
Server Maintenance This Week. ×

How to extract text from a field?


This topic is 5801 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi,

I have a field with a file path and I want to extract just a word from it, how I do it?

Example:

file: //Mac/Users/Me/Documents/Images/ProjectA/sculptures/A1.jpg

returns: sculptures

file: //Mac/Users/Me/Documents/Images/ProjectB/photographs/File5abc.jpg

returns: photographs

Edited by Guest
more explicit
Link to comment
Share on other sites

  • Newbies

will that word be always the last folder in the path (before the filename)?

Well, yes, that last folder name is what I need now.

The last part, the file name, is different every time and have different number of characters. BTW, once I get to know how to get that last folder name of the path maybe I would try to get the previous folder name as well :

TIA

Link to comment
Share on other sites

This topic is 5801 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.