-
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
Mobile App for Salesforce - Learn All About it Here
The Salesforce mobile app makes all essential information available at the touch of a button, including dashboards and reports, leads and opportunities notifications, and tasks.…
How Salesforce Consulting Services Transform Enterprise Digital Strategies
Enterprise digital strategies have shifted from simple technology upgrades to complete business transformation. Today, customer expectations, sales processes, and data-driven decision-making all require systems that…
Low-Code/No-Code Development In Salesforce And The Rise Of The Citizen Developer
In today's fast-paced digital landscape, businesses are constantly seeking ways to accelerate innovation and adapt to evolving customer needs. Traditional software development, with its lengthy…
Popular Salesforce Videos
Maximizing Salesforce Lightning Experience and Lightning Component Performance
00:04:57 - Agenda 00:06:08 - Difference between Salesforce Classic and Salesforce Lightning 00:17:45 - Demo: Load time comparison between Salesforce Classic and Salesforce Lightning when…
How to Find More Prospects, Win More Deals, and Keep Customer Happy with Salesforce Essentials
Watch this video to learn how to minimize busy work and empower your sales and support teams to spend more time closing deals and engaging…
Unleash the Power of Compare Tables | Salesforce Video
In this video, you will learn how to use compare tables to calculate complex calculations quickly, which you can then use to visualize your data.…