Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ds23pallas on github.
  • I am andytodd (https://keybase.io/andytodd) on keybase.
  • I have a public key ASCQ_ZlXGXo8hOGHOI_4qP5CQ3E22mNbmAEElWGMHua0IQo

To claim this, I am signing this object:

@ds23pallas
ds23pallas / ReplaceText
Last active August 29, 2015 14:25
Tridion Replace Text TBB
var inputName = "Component";
var pattern = "GWR";
var replacement = "Guinness World Records";
if(!string.IsNullOrEmpty(inputName) && !string.IsNullOrEmpty(pattern)) {
var input = package.GetByName(inputName);
if(input!=null) {
var source = input.GetAsString();
source = source.Replace(pattern,replacement);