diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-24 22:57:39 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-24 22:57:39 -0700 |
| commit | 6c612d4defbab5dad2c582ebb222ef791f474007 (patch) | |
| tree | b34982558766e574ff46c650e9e172bfc7f4762e | |
| parent | cfc53ea643156a9993d37e85b0be6611a614704a (diff) | |
Updated docs slightly
| -rw-r--r-- | Lua/README.md | 5 |
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" ``` |
