Quantcast
Channel: NCalc - Mathematical Expressions Evaluator for .NET
Viewing all articles
Browse latest Browse all 58

Commented Unassigned: Constant string (escaped) to Function. [28350]

$
0
0
I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to pass a regular expression to the "function".
I first started out with something like
const string skipPageExpression = "RegEx(test,'\\d{4}')";
But this gives me errors (HasErrors()).
Ideas?



Comments: I'm trying to do the exact same thing, but can't get it to work. If you find any way to pass the Regex string as function parameter, let us know! :)

Viewing all articles
Browse latest Browse all 58

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>