- Issue created by @torfj
I am working on a use case where I need to extract a sub-string from a given string. Currently, there is no tamper plugin available in the Tamper module that provides this functionality.
Introduce a new tamper plugin named SubStr that utilizes the mb_substr function (https://www.php.net/mb_substr) to extract a sub-string from the input string based on specified offset and length parameters.
Configuration Options:
Offset: The starting point for the substring (default: 0).
Length: The length of the substring. If not specified, the substring will extend to the end of the string.
Example:
Input String: This is a sample string.
Offset: 5
Length: 6
Result: is a s
Add unit tests
Active
1.0
Code