string strAddFirst = "3000'00d-31d";
How to use Regular Expression to break the string
Expected Output:
3000
00d
31d
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 18, 2014, 7:47 AM
Try this instead:
Jignesh TrivediPosted Mar 18, 2014, 7:31 AM
hi,
try
string input = @"3000'00d-31d";
string pattern = @"(')|(-)";
foreach (string result in Regex.Split(input, pattern))
{
Console.WriteLine("'{0}'", result);
}
hope this will help you.