Issue Bug Closed

#85015stdWrap replacement: useRegExp = 0 should not use preg_replace()

Andreas Krämer 05/15/18, 15:50 updated 12/23/19, 22:48

Description

Hi,

if I write “useRegExp = 0” within a replacement rule it leads to the following error:
_PHP Warning: preg_replace(): Delimiter must not be alphanumeric or backslash_

I know it is not necessary to write the line at all but I think it should work anyway and should not accept 0 as “true”.

Example:

page.3 = TEXT
page.3 {
    value = There_are_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah!
    stdWrap.replacement {
        10 {
            search = in da hood
            replace = around the block
            useRegExp = 0
        }
    }
}

Reviews 2