-
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
Enhance Business with Salesforce Implementation Services
Most of the companies nowadays are looking forward to the best results within the shortest span of time. With the introduction of Salesforce, achieving the…
How to Become a Certified Salesforce Admin?
Introduction – What Is The Certification About? The Salesforce ADM 201, or the Salesforce Administrator Certification, is the basic level of qualification for professionals who…
No Code Salesforce and Brainshark Integration
Salesforce develops and maintains customer relationship management (CRM) software that helps firms breakthrough technology boundaries across departments, giving them a holistic view of their customers…
Popular Salesforce Videos
Introducing the New gRPC-based Pub Sub API | Salesforce Developer Quick Takes
Learn about the Pub Sub API, a new gRPC-based API that exposes the power of the Salesforce Event Bus. Discover the technology, its use cases,…
Getting Turn by Turn Directions Between Scheduled Events | Salesforce Maps Mobile
Watch this video to learn how to get turn-by-turn directions between scheduled events in Salesforce Maps Mobile. 00:00 - Introduction 00:19 - Access your Schedule…
What is External ID and Why it is used in Salesforce?
This video has been divided into following points: What is an External ID in Salesforce? What is the use of External ID in Salesforce? How…