![]() The RegexMatchTimeoutException exception is thrown if the execution time of the replacement operation exceeds the time-out interval specified by the Regex.Regex(String, RegexOptions, TimeSpan) constructor. Your custom method returns a string that replaces the matched input. Public Function MatchEvaluatorMethod(match As Match) As String public string MatchEvaluatorMethod(Match match) The custom method must have the following signature to match the MatchEvaluator delegate. The evaluator parameter is the delegate for a custom method that you define and that examines each match. The regular expression is the pattern defined by the constructor for the current Regex object. The method is equivalent to calling the Regex.Matches(String, Int32) method and passing the first count Match objects in the returned MatchCollection collection to the evaluator delegate.įor more details about startat, see the Remarks section of Match(String, Int32).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |