Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfscript>
- //adUnit = "mdlinx_misc_box_atf_top_1";
- adUnit = "mdlinx_top_news_ldbd_atf_top_1";
- afterPrefix = REFindNoCase("_", adUnit);
- adUnitWithoutPrefix = Right(adUnit, Len(adUnit) - afterPrefix);
- beforeSuffix = REFindNoCase("(ldbd|sky|box)", adUnitWithoutPrefix, 1, false, "all");
- adUnitPage = Left(adUnitWithoutPrefix, beforeSuffix -2);
- withPlaceholder = Left(adUnit, afterPrefix)
- & "[[placeholder]]"
- & Right(adUnit, beforeSuffix - afterPrefix + 3);
- WriteDump([
- adUnitPage,
- withPlaceholder,
- adUnit,
- adUnitWithoutPrefix,
- beforeSuffix,
- withPlaceholder
- ]);
- </cfscript>
Add Comment
Please, Sign In to add comment