When comparing a Regex in JS and C#, I noticed that they do not produce the same results:
//javascript
var password = "pass";
var arrPws = password.split(/\s*/);
This gives me a String[] result like what you see here
However, when attempting to replicate it in C#, the output is slightly different:
//c#
using System.Text.RegularExpressions;
var password = "pass";
var arrPwd = Regex.Split(password,@"\s*");
The C# code adds an extra "" at the beginning and end as shown here
What steps can I take to eliminate the additional "" in C#?