Though it has been mentioned at https://www.drupal.org/node/1603638, it appears to not have been implemented.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | par défaut 2017-04-09 à 13.40.27.png | 44.96 KB | delacosta456 |
| #4 | rules_data_transforms-replace-text-2452931-3.patch | 1.79 KB | nwom |
Comments
Comment #1
alex.bukach commentedHere's a new action that allows multiple replacements at once, like
str_replace()does.Comment #2
nwom commentedWorks for me. Thanks!
Comment #3
nwom commentedThis patch no longer applies to the newest dev. I will reroll the patch in the next few minutes.
Comment #4
nwom commentedHere is the rerolled patch. Please review
Comment #6
delacosta456 commentedhi
thanks for patch .. please which on should we use?
thanks
Comment #7
nwom commented@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.
Comment #8
delacosta456 commentedhi
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
Comment #9
nwom commented@delacosta456: Did you flush your cache after applying the patch?
Comment #10
delacosta456 commented@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 ...
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
Comment #11
delacosta456 commentedComment #12
delacosta456 commentedhi @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.