i need to know if its safe to create a static Regex object like this
public static Regex s_Regex_ExtractEmails = new Regex(@"\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}\b");
and call it staticaly from asp.net threads like this
s_Regex_ExtractEmails.Matches("my email is [email protected]")
wont this cause any problems? i am doing this basically as an optimization so that the Regex object can be precompiled and reused thanks.