On Apr 11, 2:25 pm, "Alexey Smirnov" <alexey.smir...@gmail.com> wrote:
> On Apr 11, 10:14 pm, "Abid" <abidsultan...@gmail.com> wrote:
>
> > Hi,
>
> > I need to parse out the META Tags in any HTML document or can say any
> > webpage...specifically I am interested in META keyword and META
> > description tags...can anyone please let me know the Regular
> > Expression for that...I will really appreciate it.
>
> > Thanks in advance.
>
> something like
>
> (?<=<meta\s+name=\"?description\"?\s+content=\"?). *?(?=>)
>
> and
>
> (?<=<meta\s+content=\"?).*?(?=\sname=\"?descriptio n\"?\s?\>)
Thanks alot, It helped me very much.
|