aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lua/README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lua/README.md b/Lua/README.md
index dfc10bf..82b84f4 100644
--- a/Lua/README.md
+++ b/Lua/README.md
@@ -6,6 +6,9 @@ This directory contains Lua bindings for bp.
```lua
local bp = require("bp")
-local m, i, len = bp.match("like finding a needle in a haystack", '"n" +`e "dle"')
+local m, i, len = bp.match("like finding a needle in a haystack", '"n" @Es=+`e "dle"')
+--> {[0]="needle", Es={[0]="ee"}}
+--> tostring(m) == "needle", tostring(m.Es) == "ee"
local replaced = bp.match("like finding a needle in a haystack", '"n" +`e "dle"', "cat")
+--> "like finding a cat in a haystack"
```