forked from external/yambar
string like operation
This commit is contained in:
parent
0f47cbb889
commit
4826a52306
6 changed files with 88 additions and 7 deletions
|
@ -265,6 +265,26 @@ To match for empty strings, use ' "" ':
|
|||
<tag> == ""
|
||||
```
|
||||
|
||||
String glob matching
|
||||
|
||||
To perform string matching using globbing with "\*" & "?" characters:
|
||||
\* Match any zero or more characters.
|
||||
? Match exactly any one character.
|
||||
|
||||
```
|
||||
<tag> ~~ "hello*"
|
||||
```
|
||||
|
||||
Will match any string starting with "hello", including "hello",
|
||||
"hello1", "hello123", etc.
|
||||
|
||||
```
|
||||
<tag> ~~ "hello?"
|
||||
```
|
||||
|
||||
Will match any string starting with "hello" followed by any single
|
||||
character, including "hello1", "hello-", but not "hello".
|
||||
|
||||
Furthermore, you may use the boolean operators:
|
||||
|
||||
[- &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue