Hey guys.
I need to do some text manipulation on a list of URLs I have received, my format is similar to:
/xxxx-xxxxx-xxxx-xx-p1293282.html
/xxx-xx-x-p02384324.html
/xx234xx-xxx32xx-xxxx-xx-p1293282.html
Basically, there's a whole lot of junk in the line that I need to remove, however all I wish to keep is the "-p[0-9].html" and have a list of those results only.
How is it possible to do this in a for_each statement printing the output?
Any help is appreciated.