Lite XL

DE

English Deutsch

Über

FAQ Funktionen Screenshots Mitwirkende

Dokumentation

Nutzen Bauen Standard Keymap MacOS Keymap

Tutorials

Einfaches Plugin Syntaxhervorhebung API Overview Systemschriftarten

Plugins

Downloads

Suchen

Regex API

This API provides PCRE regular expressions for those who needs more power in matching text. This API written in C and Lua.

Creating a regex

Use regex.compile(pattern, options) to compile a regex.

Matching

Low level functions

Note: regex:cmatch() returns wrong indexes (currently at version 2.0.2). The end index returned by regex:cmatch() is always off by 1 (-1 to get the actual end index).

High level functions

All the functions below can be in 2 forms: - regex:fn(...) where regex is the compiled regex instance - regex.fn(pattern, ...) where pattern is a pattern string to be compiled and used directly.

We will only document the first form.

Mache mit

Github Discord Matrix

Status