-
Splitting the string removes the delimiter
When I am Splitting any string using the split() method then it is working good but the problem is that after splitting it removes the char that is used foe splitting
like
String str = 'abc-xyz-pqrs-zykp';
list<String>test = str.split('-');
Output : {abc,xyz,pqrs,zykp}
Actual outPut that I want : {abc,-xyz,-pqrs,-zykp};
I want this to be done without iterating the above list in a for loop.
Log In to reply.
Popular Salesforce Blogs
Get Salesforce Campaign Members Directly In MailChimp
For Email Marketing you have to add Salesforce Contacts directly into the MailChimp. So follow the steps to configure MailChimp for Salesforce and get the…
Salesforce Lead Management: A Detailed Guide (2022)
The Salesforce lead status is an integral part of your business that can guide you to success with its strategies for effectively managing leads. Lead…
Salesforce Sales Cloud - Editions & Pricing Comparison
Editions in Sales Cloud – Essentials, Professional and Enterprise Salesforce Sales Cloud is an extremely powerful CRM for the management of your sales processes. Choosing this cloud…
Popular Salesforce Videos
Salesforce Interview | Marketing Cloud Success
What's it like to learn Marketing Cloud from scratch? Akasia Perran has the answers and in this video, I ask her about her experience starting…
5 Tips on How to Run Your Pipeline Engine to Drive Growth | Salesforce on Salesforce
Salesforce’s revenue has been on a firm upward trajectory for years, and every year we see terrific growth. How do we do it? I’ll let…
Dynamic Report Charts & Customer 360 View in Salesforce - Learn Salesforce Series By Algoworks
In this video, the following points will be covered - 1. Introduction Introduction to conventional setup for Customer 360. 2. Prerequisites Setting up a base…