bp/tests/20-submatch.sh

4 lines
171 B
Bash

# pat1 ~ pat2 matches if pat2 can be found within pat1, like words containing "e"
# Example: bp '{+`0-9 ~ `5}' matches "12345" and "72581", but not "789"
bp '{word ~ `e}'