using System.Text.RegularExpressions;
public static void Main()
string str="spaTemplate.setScreenId ( \"004_009_ESM000\" );";
Regex regex = new Regex("[\"']([0-9a-zA-Z_]+)[\"']");
Match match = regex.Match(str);
Console.WriteLine(match.Groups[1].Value);