Last active
December 14, 2016 18:29
-
-
Save JamieHouston/a329964a6eb9cd5a0f2894d65577db55 to your computer and use it in GitHub Desktop.
Regex Servicestack Test
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; | |
using System.Text.RegularExpressions; | |
using ServiceStack.Text; | |
var exp = @"([\@\[]*[\w, ]+[\]]*)"; | |
var regex = new Regex(exp); | |
var parts = new List<string>{"This","is","@[my]","test","of","@[the]]", | |
"@[my]","test","for","@[[this]","@[bob wiley]", | |
"@is","@[my, comma]","the","end"}; | |
var results = regex.Matches(parts.Join(" "); |
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="4.0.62" targetFramework="net45" /> | |
<package id="ServiceStack.Client" version="4.0.62" targetFramework="net45" /> | |
<package id="ServiceStack.Interfaces" version="4.0.62" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment