Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi

 

How can i filter a txt from this "2100-619903.psd" to this "619903".
It should always remove the .psd and all the characters until "-" if there are a "2100-" there could also be txt without "2100-".
 
The 4 numbers before the "-" could be all kind of characters, and there could be "-" in other places 2100-619903-8.psd
 
Regards
Frank
Posted

Try:

Let ( [
  ~s = Substitute ( yourValue ; ".psd" ; "" ) ; // assuming the suffix will always be ".psd"
  posD = Position ( ~s ; "-" ; 1 ; 1 )
  ] ;
  Replace ( ~s ; 1 ; posD ; "" )
)

This topic is 3737 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.