Project

General

Profile

Actions

Bug #16275

closed

Add a generic method to escape regex chars in a string

Added by Félix DALLIDET over 4 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

We may want to use a given string in Rudder which may contains several regex chars that need to be escaped when passed to a regex intended input.
Obvious case is the "File content" technique and its replacement field.

The method will take the complete name of an already defined variable (i.e. prefix.name) and defined a prefix.name_escaped variable with the proper escaped string

Actions

Also available in: Atom PDF