Browse Source

Fixing to integer regex

Former-commit-id: c43ebb950380f84b91dcf405cc14ff8274cfa5a2
pull/17/head
James South 12 years ago
parent
commit
f24f8accbe
  1. 4
      src/ImageProcessor/Extensions/StringExtensions.cs

4
src/ImageProcessor/Extensions/StringExtensions.cs

@ -123,7 +123,7 @@ namespace ImageProcessor.Extensions
throw new ArgumentNullException("expression");
}
Regex regex = new Regex(@"[\d+]+(?=[,|])|[\d+]+(?![,|])", RegexOptions.Compiled);
Regex regex = new Regex(@"[\d+]+(?=[,-])|[\d+]+(?![,-])", RegexOptions.Compiled);
MatchCollection matchCollection = regex.Matches(expression);
@ -152,7 +152,7 @@ namespace ImageProcessor.Extensions
throw new ArgumentNullException("expression");
}
Regex regex = new Regex(@"[\d+\.]+(?=[,|])|[\d+\.]+(?![,|])", RegexOptions.Compiled);
Regex regex = new Regex(@"[\d+\.]+(?=[,-])|[\d+\.]+(?![,-])", RegexOptions.Compiled);
MatchCollection matchCollection = regex.Matches(expression);

Loading…
Cancel
Save