Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-12-12 19:43
Flavor·ECMAScript (JavaScript)

/
(^[\S]+)(?!^[\S]+)\s+.*
/
gm
Open regex in editor

Description

Create a static reference to the Unity MonoBehaviour messages. Select the "Messages from" http://docs.unity3d.com/ScriptReference/MonoBehaviour.html and substitute with:

public const string $1 = "$1";

Submitted by KiwiDevelop.com