Regular Expressions in Unity

Is there a way to evaluate regular expressions in Unity?

Updated, I’m not sure how to integrate the .net RegEx library exactly. Suppose I have a unity string, how do I get the Regex library to parse it into an array?

In order to get the Regex library in your C# script you must include the System.Text.RegularExpressions namespace. Then, you have access to Regex. As for evaluating an expression try using the Regex.IsMatch() method. For example (Regex.IsMatch(reg_uname.text, "^[a-zA-Z0-9_]$")) Hope this helps.