Regex question

P

pedrito

Sorry if this is a repost. According to Outlook Express, I posted this
yesterday but it's not showing for me and I can't find it on Google Groups,
so I'm assuming it didn't go through for some reason. If it did and this is
a dupe, I apologize....

I have a regex question and it never occurred to me to ask here, until I saw
Jesse Houwing's quick response to Phil for his Regex question.

I have some filenames that I'm trying to parse out of URLs.

(href=("|')http://.www\.thesite\.com/.{1,7}/)(?<filename>.[^"|'])

This generally works, but the problem is some of the image files have
..th.jpg at the end to indicate thumbnails. I want to exclude those. I just
want the ones that don't have .th. before the file extension.

I've tried using forward and reverse negative lookups, but I guess I'm not
using them correctly. Any help on how to get a non-match for a .th. would be
great.
 
P

pedrito

Oops

Okay, I see what happened here. Outlook express grouped my question with
another of the same topic, for some reason.. Sorry about the repost.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top