Skip to content

Instantly share code, notes, and snippets.

@MikaelSoderstrom
Created February 1, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikaelSoderstrom/fcb7f807fa0fc8af44e6 to your computer and use it in GitHub Desktop.
Save MikaelSoderstrom/fcb7f807fa0fc8af44e6 to your computer and use it in GitHub Desktop.
using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
string test = "ABC123D";
var regex = new Regex("[A-Z]*(.*)");
var result = regex.Matches(test);
Console.WriteLine(result[0].Groups[1]);
}
}
}
@MikaelSoderstrom
Copy link
Author

Skriver ut:
123D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment