The Regex Editor
From UBot Studio
(Difference between revisions)
Line 11: | Line 11: | ||
[[File:regex1.jpg]] | [[File:regex1.jpg]] | ||
+ | |||
+ | |||
+ | The large bottom right area is where the items the regex will be tested against. | ||
+ | |||
+ | In this case, our test items are: | ||
+ | |||
+ | 123 | ||
+ | abc | ||
+ | |||
+ | The regex \w is being used to find specific items in the test items. | ||
+ | |||
+ | When \w is selected in the Regex Editor, the definition appears in the bottom left portion of the regex editor which give us the definition of the regex: | ||
+ | |||
+ | <pre>Description: | ||
+ | Matches any word character (alphanumeric and underscore). | ||
+ | Pattern: | ||
+ | \w</pre> |
Revision as of 14:42, 7 October 2013
The Regex Editor is a feature within UBot Studio that allows you to test regular expression before using it in other commands and functions in UBot Studio.
The feature comes with a reference guide that provides definitions for each form of regex.
To select regex from the list provided within the Regex editor, simply double click to add it to the regex being built.
The large bottom right area is where the items the regex will be tested against.
In this case, our test items are:
123 abc
The regex \w is being used to find specific items in the test items.
When \w is selected in the Regex Editor, the definition appears in the bottom left portion of the regex editor which give us the definition of the regex:
Description: Matches any word character (alphanumeric and underscore). Pattern: \w