Skip to content

Instantly share code, notes, and snippets.

@afreeland
Created February 6, 2014 18:16
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 afreeland/8849587 to your computer and use it in GitHub Desktop.
Save afreeland/8849587 to your computer and use it in GitHub Desktop.
RegEx: General regular expression helpers
// Regex \[(.*?)\]
// Result [BinLocation] [nvarchar]
[BinLocation] [nvarchar](20) NOT NULL,
// RegEx \[([^\[]+)$
// \[ matches [
// [^\/[]+] Matches last occurence of [
// $ matches end of line
// Result [nvarchar](20) NOT NULL,
[BinLocation] [nvarchar](20) NOT NULL,
// Regex \[
// Result [
[BuydownPrice]
// Regex \]
// Result ]
[BuydownPrice]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment