Using regexps seems to always boil down to debugging a regexp expression to
have it give you what you want. First of all, check the response of whatever
the regexp is attached to, in order to verify that it is, in fact, returning
what you think you're looking for.

If it is, then I usually find it helpful to start paring stuff off my
regular expression until it works. You never know what the regexp isn't
going to like. Set it up to match promiscuously, perhaps just (.*) to start
and then start adding things until it breaks. Then look at why it's breaking
on what it is.

I always prefer the xpath extractor over the regexp extractor when I can use
it, as it takes much less fiddling to make it work. Usually with the xpath
extractor I just need to remember to click "use tidy" and I'm good.

-- 
Bruce Ide
flyingrhenqu...@gmail.com

Reply via email to