import{validation}from"../../Validation.js";class RegexReplace{execute(e){const t=validation.string("text",e.text,validation.never);var a=validation.string("pattern",e.pattern,validation.never),i=validation.string("replacement",e.replacement,""),e="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":""),e=new RegExp(a,e);return{result:t.replace(e,i)}}}RegexReplace.action="gcx:wf:core::RegexReplace",RegexReplace.suite="gcx:wf:builtin";export{RegexReplace};