TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Salma Siddiqa
NA
11
3.6k
Regex to remove the css empty class
Feb 18 2013 5:58 AM
Hi All,
I have html style sheet in xml format., how can i remove the empty classes?
eg:
#span23
{
}
or
#span23{
}
I created 2 different pattern
Regex.Matches(strModifiedCSS.ToString(), @"[\#]+([a-z]+[0-9]+)", RegexOptions.IgnoreCase)
Regex.Matches(strModifiedCSS.ToString(), @"[\n]+\{(\s+)\}", RegexOptions.IgnoreCase)
but when i combined both it did not worked for me
Reply
Answers (
0
)
uploading ms word document as blob
How to print dataset in multiple pages in Windows form