Closed NicoLaval closed 7 months ago
Quoting the Reference Manual:
replace: (line 2723) pattern1 the pattern to be replaced
replace
pattern1 the pattern to be replaced
match_characters: (line 4104) pattern: the regular expression
match_characters
pattern: the regular expression
For replace function, the second param, pattern1 is a string.
pattern1
Can it be a regular expression?
I would say yes
Explicitly enable regex param for replace: update line 2723: pattern1 the pattern (regular expression) to be replaced
pattern1 the pattern (regular expression) to be replaced
Agree, also already implemented this way
Agreed. Current VTL 2.1 version document updated.
Issue Description
Quoting the Reference Manual:
replace
: (line 2723)pattern1 the pattern to be replaced
match_characters
: (line 4104)pattern: the regular expression
For
replace
function, the second param,pattern1
is a string.Can it be a regular expression?
I would say yes
Proposed Solution
Explicitly enable regex param for
replace
: update line 2723:pattern1 the pattern (regular expression) to be replaced