I'm trying to obtain the keywords from an HTML page that I'm scraping with PHP.
So, if the keywords tag looks like this:
<meta name="Keywords" content="MacUpdate, Mac Software, Macintosh Software, Mac Games, Macintosh Games, Apple, Macintosh, Software, iphone, ipod, Games, Demos, Shareware, Freeware, MP3, audio, sound, macster, napster, macintel, universal binary">
I want to get this back:
MacUpdate, Mac Software, Macintosh Software, Mac Games, Macintosh Games, Apple, Macintosh, Software, iphone, ipod, Games, Demos, Shareware, Freeware, MP3, audio, sound, macster, napster, macintel, universal binary
I've constructed a regex, but it's not doing the trick.
(?i)^(<meta name=\"keywords\" content=\"(.*)\">)
Any ideas?