aboutsummaryrefslogtreecommitdiff
path: root/data/core/regex.lua
AgeCommit message (Collapse)Author
2022-05-28Make `regex.match` return all the resultsGuldoman
2021-10-11Make `regex.match` return the appropriate `end` indexGuldoman
This makes its behavior similar to `string.find`.
2021-09-10Avoid bug when replacement stop at end of stringFrancesco Abbate
Detect when we are past the end of the string to avoid by checking if byte is not nil. Fix #510.
2021-07-20Merged dev to master.Adam Harrison
2021-06-04Changed regex error handling, so that errors can be handled gracefully in ↵Adam Harrison
lua, and made it so gsub returns the exact matches and replacements.
2021-06-02Add PCRE to support regular expressionsAdam
Use regular expressions instead of Lua patterns for find and replace editor commands. Syntax files can now use regex or Lua patterns as before keeping backward compatibility for plugins.