c# Regex return first 3 chareters from string code example Example: regex for first three characters ^.{0,3} .{0,3}$