To avoid such issues you can mask the $'s by doubling.
Example:
Replace this:
wildCardMatches = Regex.Matches(displayPattern, "[\$[a-z,A-Z,_,0-9]*\$]") by this:
wildCardMatches = Regex.Matches(displayPattern, "[\$$[a-z,A-Z,_,0-9]*\$$]")
It will not raise compiler errors and will work as expected.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center