Comments

alex.bukach’s picture

Assigned: alex.bukach » Unassigned
Status: Active » Needs review
StatusFileSize
new1.45 KB

Here's a new action that allows multiple replacements at once, like str_replace() does.

nwom’s picture

Works for me. Thanks!

nwom’s picture

This patch no longer applies to the newest dev. I will reroll the patch in the next few minutes.

nwom’s picture

Here is the rerolled patch. Please review

Status: Needs review » Needs work

The last submitted patch, 4: rules_data_transforms-replace-text-2452931-3.patch, failed testing.

delacosta456’s picture

hi
thanks for patch .. please which on should we use?

thanks

nwom’s picture

@delacosta456 the patches are the same aside from the patch being rerolled to the newest version. Not sure why there is a testbot CI error.

delacosta456’s picture

StatusFileSize
new44.96 KB

hi
tried both patch but and none looks to work.

When i try to use the action "Replace text " nothing shows ... and when hit save button i have an error.. Please see the attachment

thanks

nwom’s picture

@delacosta456: Did you flush your cache after applying the patch?

delacosta456’s picture

@NWOM

Many thanks.. wonderful .. flushing cash resolve my issue..
By the way , is / will this patch be helpful to do things like :

    using Regex to strip out some word ...
    Let say i have BANAmana, and i want to remove the "mana" to have only BANA

    Search for exact match , case sensitive ... so that , if as replacement of "man" by "woman" in sentence like "Tel that man to cal BANAmana", it will not result in : "Tel that woman to cal BANAwomana"

    thanks

delacosta456’s picture

delacosta456’s picture

hi @NWOM

the replacement looks not be working ... and when looking at rules debug i am seeing an error massage : 24.657 ms action replace_text: Execution implementation is missing.

What i am just trying to do, is replace a a word "Civil" by the letter "C" in a node's title.