up: RE | index | Zimbu documentation |
The builtin type regex. Example: regex re = RE("pat.*ern") IF re.matches("in here") The regular expression syntax is equal to what is used in Javascript, see this page The number of matching groups is limited to 20. Using more groups may cause the pattern to fail. When using backslashes in the pattern a raw string avoids the need to double them: regex re = RE("\\bword\\b") regex re = RE(R"\bword\b")
|
PROC NEW(string pattern) @public
PROC NEW(string pattern, RE.Options options) @public
FUNC $match(string text) string @public
FUNC $matchAll(string text) list<string> @public
FUNC $matchGroups(string text) list<string> @public
FUNC $matchStart(string text) int @public
FUNC $matches(string text) bool @public
FUNC $replace(string text, string replace) string @public
FUNC $replaceAll(string text, string replace) string @public
|
Copyright 2015 Bram Moolenaar All Rights Reserved. |
Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0 |