mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 01:36:17 -04:00
Added operation 'filter'
This commit is contained in:
parent
af4644c9eb
commit
4b5210585a
3 changed files with 50 additions and 0 deletions
|
@ -148,6 +148,7 @@ const Categories = [
|
|||
"Sort",
|
||||
"Unique",
|
||||
"Split",
|
||||
"Filter",
|
||||
"Count occurrences",
|
||||
"Expand alphabet range",
|
||||
"Parse escaped string",
|
||||
|
|
|
@ -1764,6 +1764,29 @@ const OperationConfig = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"Filter": {
|
||||
description: "Filter the string with an regular expression",
|
||||
run: StrUtils.run_filter,
|
||||
input_type: "string",
|
||||
output_type: "string",
|
||||
args: [
|
||||
{
|
||||
name: "Delimiter",
|
||||
type: "option",
|
||||
value: StrUtils.DELIMITER_OPTIONS
|
||||
},
|
||||
{
|
||||
name: "Regex",
|
||||
type: "string",
|
||||
value: ""
|
||||
},
|
||||
{
|
||||
name: "Invert condition",
|
||||
type: "boolean",
|
||||
value: SeqUtils.SORT_REVERSE
|
||||
},
|
||||
]
|
||||
},
|
||||
"Strings": {
|
||||
description: "Extracts all strings from the input.",
|
||||
run: Extract.run_strings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue