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
sampath meka
NA
94
31.4k
Regex in C#
Nov 4 2014 7:25 AM
Hello All,
I want to break the below string by using the Regular Expression:
String:"((5AT_DRIVING_ASSISTANT_PLUS, 5AU_DRIVING_ASSISTANT_PREMIUM_ARBEITSNAME, (5DP_PARKASSISTENT + (205_AUTOMATIK, 2TB_SPORT_AUTOMATIK_GETRIEBE, 2TE_AUTOMATIC_GETRIEBE_MIT_SCHALTWIPPEN)), 5DV_PARKASSISTENT_PLUS_ARBEITSNAME))"
Output:
1. 5AT_DRIVING_ASSISTANT_PLUS
2. 5AU_DRIVING_ASSISTANT_PREMIUM_ARBEITSNAME
3. (5DP_PARKASSISTENT + (205_AUTOMATIK, 2TB_SPORT_AUTOMATIK_GETRIEBE, 2TE_AUTOMATIC_GETRIEBE_MIT_SCHALTWIPPEN))
4. 5DV_PARKASSISTENT_PLUS_ARBEITSNAME
We cannot Split with the (','). Because, 3rd string contains the comma(,) that should not split with the comma.
the input string should split in 4 strings.
Thanks in Advance
Reply
Answers (
3
)
Regular Expression in C#
Recently files list - how to edit from c# application?