Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C# - String Parsing
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string myString = "PO:49, Due:Aug 12, 2015, Amt:600.00"; string[] myDelimiters = new string[] { ", Due:", ", Amt:" }; //String myDate = myString.split(new char[] {', Due:',', Amt:'}); string myDate = myString.split(myDelimiters); Console.WriteLine("FULL:" + myString); Console.WriteLine("DATE:" + myDate); } } }
run
|
edit
|
history
|
help
0
How to use Lambda expression wiht generic delegate
aba
memes
ADCSXAA
ruSrib
Collections demo
Game v1.0.1
Get Bytecent Price in $USD
IEquatable_Object compare
tipos de bucle for, while, do while