variable_string_escaped
Define a variable from another string variable and escape regular expression characters in it.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
name | The variable to define, the full name will be prefix.name. This parameter is required. |
Example
method: variable_string_escaped
params:
name: VALUE
Documentation
To use the generated variable, you must use the form ${<name>_escaped}
where
Please note that the variable you want to escape must be defined before this method evaluation.
Example:
With a variable defined by the generic method variable_string
, named my_prefix.my_variable
and valued to:
something like [] that
Passing my_prefix.my_variable
as name
parameter to this method will result in a
variable named my_prefix.my_variable_escaped
and valued to:
something\ like\ \[\]\ that