-
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
All You Need to Know about Batch Apex in Salesforce
Contents: What is Batch Apex? Batch Apex is a very powerful asynchronous process introduced by Salesforce. Which is used to process a large number of…
Basics of Salesforce Admin and App Builder Certifications
A Salesforce Admin Certification is the most elevated type of acknowledgement a Salesforce Administrator can accomplish; it shows aptitude in the field just as a…
Boosting Legal Firm Efficiency with Salesforce Management Solutions
The legal industry is constantly evolving, with firms facing challenges related to data management, client communications, case tracking, and regulatory compliance. Salesforce Management Solutions offer…
Popular Salesforce Videos
Guided Selling with Salesforce CPQ
Do you know how to set up guided selling in Salesforce CPQ? In this demo video, we'll show you three easy steps to set up…
How to Learn Salesforce in easy step by step and get certified
From Salesforce instructor, Become a Salesforce Expert. Learn Salesforce step by step and get certified easily.
Pass Record Id into Flow from Record | Salesforce Tutorial
Passing record ids is a technique that every flow master needs to know to use flows to their full potential. In this video, we go…