SimpleRegex

Author: Jonathan Czeck (aarku)

Description
This script shows one way to use regular expressions in Unity. This script is not intended to do something useful, but open up ideas on how one might make something useful using regular expressions. It does not attempt to teach Mono's regular expression syntax. (Which seems very similar if not identical to bash's.) In this script, we take an inputString and extract specific properties out of it and turn them into useful things like string, float, int, and Vector3.

Usage
Place this script on any GameObject in your scene, set the inputString property to something like the default string or just leave it as-is. Then hit play and see the results of the script in the Console window.

JavaScript - SimpleRegex.js
For those interested in learning about the System.Text.RegularExpressions namespace that brings in regular expressions functionality and an entire bunch of new types, here's the link for the relevant Microsoft .NET Framework documentation page: http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.aspx