360TRef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System.Text.RegularExpressions; | |
using ServiceStack; | |
using ServiceStack.Text; | |
var mysisRef = "360T364827992x"; | |
var _360tRef = Get360TReference(mysisRef); | |
_360tRef.PrintDump(); | |
public string Get360TReference(string mysisRef) | |
{ | |
var regex = new Regex(@"^360T(\d+)[a-zA-Z]?"); | |
var match = regex.Match(mysisRef); | |
if (match.Success) | |
{ | |
return match.Groups[1].Value; | |
} | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="ServiceStack.Text" version="5.2.0" targetFramework="net45" /> | |
<package id="ServiceStack.Client" version="5.2.0" targetFramework="net45" /> | |
<package id="ServiceStack.Interfaces" version="5.2.0" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment