A lightweight library for performing brace expansion in .NET
Install-Package BraceExpander
using BraceExpander;
var results = Expander.Expand("part.{01..3}");
// [part.01, part.02, part.03]
var results = Expander.Expand("{1..5}");
// [1, 2, 3, 4, 5]
var results = Expander.Expand("{a..g}");
// [a, b, c, d, e, f, g]
var results = Expander.Expand("{0..10..2}");
// [0, 2, 4, 6, 8, 10]
var results = Expander.Expand("a{1,2,3}");
// [a1, a2, a3]
var results = Expander.Expand("{{{{a,b},c,{d..f}},g},h}");
// [a, b, c, d, e, f, g, h]