I need to replace a pattern of URLs from a data feed. My regex skills are quite horrible.
Here's the situation: I have a file with a list of URLs, but I only want to delete certain ones--specifically image URLs.
Here are two actual URLs that I want to delete (there are hundreds of these):
http://images.secure2u.com/318/Proc/Full/1047190.jpg
http://images.secure2u.com/3356/Proc/Full/1969092.jpg
I assumed I could simply enter the following under find:
http://images.secure2u.com/$[0-999]+/Proc/Full/$[0-9999999]+.jpg
...but that didn't work.
Any regex experts outs there? Thanks.
Here's the situation: I have a file with a list of URLs, but I only want to delete certain ones--specifically image URLs.
Here are two actual URLs that I want to delete (there are hundreds of these):
http://images.secure2u.com/318/Proc/Full/1047190.jpg
http://images.secure2u.com/3356/Proc/Full/1969092.jpg
I assumed I could simply enter the following under find:
http://images.secure2u.com/$[0-999]+/Proc/Full/$[0-9999999]+.jpg
...but that didn't work.
Any regex experts outs there? Thanks.