aboutsummaryrefslogtreecommitdiff
path: root/tests/20-submatch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/20-submatch.sh')
-rw-r--r--tests/20-submatch.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/20-submatch.sh b/tests/20-submatch.sh
new file mode 100644
index 0000000..22da9e0
--- /dev/null
+++ b/tests/20-submatch.sh
@@ -0,0 +1,3 @@
+# pat1 ~ pat2 matches if pat2 can be found within pat1, like words containing "e"
+# Example: bp -p '+`0-9 ~ `5' matches "12345" and "72581", but not "789"
+bp -p 'word ~ `e'