Skip to content

Commit 4c7c6c2

Browse files
committed
Clarify slashes in wildcard matching
1 parent 34218a6 commit 4c7c6c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/docs/ruleset-engine/rules-language/operators.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ String comparison in rule expressions is case-sensitive. To account for possible
221221
lower(http.request.uri.path) contains "/wp-login.php"
222222
```
223223

224-
Wildcard matching is only supported with the `wildcard` and `strict wildcard` operators, and regular expression matching is only supported with the `matches` operator.
224+
[Wildcard matching](#wildcard-matching) is only supported with the `wildcard` and `strict wildcard` operators, and [regular expression matching](#regular-expression-matching) is only supported with the `matches` operator.
225225

226226
### Wildcard matching
227227

@@ -262,6 +262,8 @@ http.request.full_uri wildcard "*.example.com/*/page.html"
262262
# - https://sub.example.com/a/ ('page.html' is missing)
263263
```
264264

265+
Slashes (`/`) have no special meaning in wildcard matches. In this example, the second `*` metacharacter in the expression `http.request.full_uri wildcard "*.example.com/*/page.html"` matched `folder`, `team`, and `team/subteam`.
266+
265267
</Details>
266268

267269
<Details header="Example C">

0 commit comments

Comments
 (0)