Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Capture part of a filepath
I have a variable (called path) storing a filepath such as X:\AAAA\BBBB\
I need to capture the BBBB portion of the filepath. However, this filepath isn't always going to be this exact format, but I will always need to get the text between the last two '\'. What is the best way I can do this? Seems like it should be easy, however, I have been struggling with it. Hope this makes sense.
TIA!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement