From 7122dcdc8143c76336074fec1de172d6c569f0c2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 22 Sep 2021 23:51:34 -0700 Subject: Added Lua bindings --- Lua/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Lua/README.md (limited to 'Lua/README.md') diff --git a/Lua/README.md b/Lua/README.md new file mode 100644 index 0000000..dfc10bf --- /dev/null +++ b/Lua/README.md @@ -0,0 +1,11 @@ +# Lua Bindings + +This directory contains Lua bindings for bp. + +## API + +```lua +local bp = require("bp") +local m, i, len = bp.match("like finding a needle in a haystack", '"n" +`e "dle"') +local replaced = bp.match("like finding a needle in a haystack", '"n" +`e "dle"', "cat") +``` -- cgit v1.2.3