in reply to Regex to Array lookup question

Sorry I have trouble understanding your question, could you provide us with a table of desired in- and output?

At first sight it looks like you want to match an or'ed list of keywords m/skc|few|sct|.../ and translate them with your hash. That's it?

If I were you, I'd start by stripping the unneeded parts of the URLs out, this should facilitate it considerably and help identifying gaps.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery