re

API Reference

re

Lua-style string pattern matching.

RE

  • Function COMPILE-RE (pattern)
    Create a regular expression from a pattern string.
  • Macro WITH-RE ((re pattern) &body body)
    Compile pattern if it's not a RE object and execute body.
  • Macro WITH-RE-MATCH ((match match-expr &key no-match) &body body)
    Intern match symbols to execute a body.
  • Function MATCH-RE (pattern s &key exact (start 0) (end (length s)))
    Test a pattern re against a string.
  • Function FIND-RE (pattern s &key all (start 0) (end (length s)))
    Find a regexp pattern match somewhere in a string.
  • Function SPLIT-RE (pattern s &key all coalesce-seps (start 0) (end (length s)))
    Split a string into one or more strings by pattern match.
  • Function REPLACE-RE (pattern with s &key all (start 0) (end (length s)))
    Replace patterns found within a string with a new value.