Timeline for Using Substring in AMPScript to remove first 3 and last 5 characters in automated email
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2017 at 17:50 | comment | added | Gortonington | Check to see if you have any spaces or other 'hidden' characters at the end of your string. Substring will include all chars in its calculation. | |
Jun 8, 2017 at 17:00 | comment | added | M. Roche | Thank you so much! This is so close to working, but something isn't quite right. When the Attribute is "DC: Build it, Destroy it (3-6)", for some reason with your code it is showing up as "Build it, Destroy it (3-" I adjusted the 5 to 8 in your code until it got rid of all of the parenthetical at the end but I don't understand why it needed to be 8 because I don't see 8 characters at the end. I'm worried that this won't work when there is a different length in the middle... | |
Jun 6, 2017 at 23:12 | history | answered | Gortonington | CC BY-SA 3.0 |