You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pattern syntax is from [`regex`](https://docs.rs/regex/latest/regex/)
73
73
- Replacement syntax is from [`regex::Replacer`](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace), e.g. `$1`, `$0`, `${name}`
74
74
-`\/` escapes the command delimiter in pattern/replacement
75
+
- Custom delimiters: `s`, `y`, `g`, `g!`, and `v` all accept any non-alphanumeric char as delimiter instead of `/`, e.g. `s@pat@rep@`, `g@pat@cmd`. Each command in a combo picks its own delimiter independently: `g@a/b@s/old/new/`
76
+
- Literal newlines in pattern/replacement are supported (joins/splits lines as needed)
75
77
- Transliteration uses `y/src/dst/` and requires source/destination to have equal character counts
76
78
77
79
When passing multiple commands, each command's lnhashes are verified immediately before that command runs.
@@ -93,14 +95,15 @@ In `--stdin` mode, multiline `a/i/c` text blocks are not available.
93
95
## Python API
94
96
95
97
```py
96
-
from exhash import exhash, exhash_result, lnhash, lnhashview, line_hash
98
+
from exhash import exhash, exhash_file, exhash_result, lnhash, lnhashview, lnhashview_file, line_hash
0 commit comments