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
kiran kiran
NA
3
0
string concatenation in regex C#
Oct 16 2009 1:09 AM
Hi,
I have this string with me.
class a : public b, public c, public d { (class syntax in C++)
Now i want to get all baseclass names in one single variable through regex in C#.
I am getting derived class name properly, but getting base class name is the issue.
I have developed this regex :
@"((class|interface)\s*?(?<classname>\w*?)(\s*?|\n*?)(\:?)(\s*?|\n*?)((public|private|protected)?(\s*?|\n*?)(?<baseclassname>\w*?)[\s|\n|\,]*?)*?(\{))"
Can anyone help me in the same?
Reply
Answers (
2
)
hoew to create inputbox in c#.net
Error on null values (when format is date)