bp/tests/21-no-submatch.sh
2021-08-28 14:26:32 -07:00

4 lines
185 B
Bash

# pat1 !~ pat2 matches if pat2 cannot be found within pat1, like words *not* containing "e"
# Example: bp -p '(|+`0-9|) !~ `5' matches "123" and "678", but not "456"
bp -p 'word !~ `e'