Good day! Tell me how to cut a string to the last character \ ?

I have a way for example

 www.ru/dom/users/login1 

I need to get login1 from here, through Split turns out to cut off everything to the first slash

    1 answer 1

    Tax, this is done by $peremen.Split("/")[-1]

    • "Tax" - what did you mean? Taxi or Taxi? - 0xdb