Jump to content

Recommended Posts

Posted

Does it have to be regex? There's default built in option of path and leaf to do that already

 

As an example

 

Split-Path "N:\my\epic\long\path\tesst\1234.txt" -leaf

 

Returns 1234.txt

 

Or did you need regex?

 

Steve

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...