Hi friends
I want to know about what is Regex.MatchTimeout Property in C#.
Thank you.
Regex.MatchTimeout Property in C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted May 8, 2012, 8:57 PM EDT
The MatchTimeout property defines the approximate maximum time interval for a Regex instance to execute a single matching operation before the operation times out. The regular expression engine throws a RegexMatchTimeoutException exception during its next timing check after the time-out interval has elapsed.
This property is read-only. You can set its value explicitly for an individual Regex object by calling the Regex.Regex(String, RegexOptions, TimeSpan) constructor.
Please refer.
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexcompilationinfo.matchtimeout%28v=vs.110%29.aspx
hope this help.