Congratulations - C# Corner Q4, 2022 MVPs Announced
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
jithendra pasala
2.1k
53
33.4k
Regular Expression Difficult
Apr 29 2014 11:08 AM
Hello All,
I want to break the strings by using the Regular Expression:
String1:"(G011 + !(2VR_2_ACHS_LUFTFEDERUNG, 2VS_MASTERPIECE_ARBEITSNAME) + (B47D20, B48B20))"
Output:
(G011 + !(2VR_2_ACHS_LUFTFEDERUNG) + B47D20)
(G011 + !(2VS_MASTERPIECE_ARBEITSNAME) + B47D20)
(G011 + !(2VR_2_ACHS_LUFTFEDERUNG) + B48B20)
(G011 + !(2VS_MASTERPIECE_ARBEITSNAME) + B48B20)
String2:"(G011 + !(2VR_2_ACHS_LUFTFEDERUNG) + (2VS_MASTERPIECE_ARBEITSNAME) + (B47D20, B48B20))"
Output:
(G011 + !(2VR_2_ACHS_LUFTFEDERUNG) + (
2VS_MASTERPIECE_ARBEITSNAME) +
B47D20)
(G011 + !(2VR_2_ACHS_LUFTFEDERUNG) + (
2VS_MASTERPIECE_ARBEITSNAME) +
B48B20
)
Single Regular expression should serve for Both string1 and string2.
Thanks in Advance
Reply
Answers (
1
)
MindBoggle
what future gaming