代码
System.Text.RegularExpressions.Match mat = System.Text.RegularExpressions.Regex.
Match(ProcessActsOwnerDict[var].ToString(), @"(?<=\[)\w*(?=\])");
if (mat.Success)
{
staffNo = mat.Value;
}
Match(ProcessActsOwnerDict[var].ToString(), @"(?<=\[)\w*(?=\])");
if (mat.Success)
{
staffNo = mat.Value;
}