Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Regex to get the class data from the .css file

$
0
0
Hi ,

How to extract all the .class data from an stylesheet for the classes listed in an string list.

Eg:
1) i have a list of string

htmlClassNames[0]="abc"
htmlClassNames[1]="def"
          .
          .
          .
htmlClassNames[n]="xyz"

2)a css file say style.css
i want to extract all the class data from the style.css
ie .abc{style}
        .def{style}
and also if there say div .abc{style}

how can i achieve this?

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>