Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created January 20, 2016 00:52
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 bleroy/fa1520b664f15d3db8e0 to your computer and use it in GitHub Desktop.
Save bleroy/fa1520b664f15d3db8e0 to your computer and use it in GitHub Desktop.
var verbEx = new VerbalExpressions()
.StartOfLine()
.Then("http")
.Maybe("s")
.Then("://")
.Maybe("www.")
.AnythingBut(" ")
.EndOfLine();
Assert.IsTrue(verbEx.Test("https://www.microsoft.com"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment