How to code this powershell? RRS feed

  • Question

  • I would like to know on how to retrieve the string as shown below using powershell:

    Given : www.samples.com/I-go-to-school-by-bus-183386583937.html

    The first part is ending with "/"

    The second part is starting with the last "-"

    Return : www.samples.com/183386583937.html

    Does anyone have any suggestions?
    Thanks in advance for any suggestions

    Thanks in advance for any suggestions

    • Moved by Bill_Stewart Wednesday, February 14, 2018 7:39 PM Help vampire
    Sunday, January 7, 2018 1:18 PM

All replies