Skip to content

Commit

Permalink
doc/transform: Document case-changing transforms.
Browse files Browse the repository at this point in the history
Issue: 6439
  • Loading branch information
jlucovsky committed Nov 9, 2023
1 parent 84ce82b commit f6b21f8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/userguide/rules/transforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,23 @@ Example::

alert http any any -> any any (msg:"HTTP with xor"; http.uri; \
xor:"0d0ac8ff"; content:"password="; sid:1;)

to_lowercase
------------

Converts the buffer to lowercase.

Example::

alert http any any -> any any (http.uri; to_lowercase; \
content:"|this text has been converted to lowercase|"; sid:1;)

to_uppercase
------------

Converts the buffer to uppercase.

Example::

alert http any any -> any any (http.uri; to_uppercase; \
content:"|THIS TEXT HAS BEEN CONVERTED TO UPPERCASE|"; sid:1;)

0 comments on commit f6b21f8

Please sign in to comment.