bens Posted October 24, 2014 Posted October 24, 2014 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
eos Posted October 24, 2014 Posted October 24, 2014 Try: Let ( [ ~s = Substitute ( yourValue ; ".psd" ; "" ) ; // assuming the suffix will always be ".psd" posD = Position ( ~s ; "-" ; 1 ; 1 ) ] ; Replace ( ~s ; 1 ; posD ; "" ) )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now