Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
4 people like it. Like the snippet!
An example of setting up a MatchEvaluator for use with Regex.Replace in F#.
1: 2: 3: 4: 5: 6:
let objRegex(pattern:string)(input:string)(replacement:MatchEvaluator) = Regex.Replace(input,pattern,replacement) let objRegexEvaluator = MatchEvaluator(fun m -> String.concat "" ["""<span class="special-fs">""";m.Value;"</span>"]) objRegex("(?<![A-Za-z1-9])(Seq|List|Array|float|int)(?![A-Za-z1-9])")("NewtonRahpson(f:float->float)(fDiff:float->float)(a0:float)")(objRegexEvaluator)