Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing Style-Sheet with Regular Expressions

Status
Not open for further replies.

Smapty

Programmer
Mar 12, 2005
55
0
0
US
Need help creating a regular expression that will go through a style-sheet and pick out all the classes, ids, and native html elements. Also need to pick out the class+selector combinations, i.e. ".myTable tr".

I figure the easiest way may be to grab everything expect for stuff in comments, or between the "{}" brackets.
 
If you know Perl, you could use the CSS module there and it's sub-module CSS::Selector. But that would be better served in the Perl forum if you run into trouble with this.

- George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top