-
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
Salesforce Distributed Marketing – Enabling the last mile to connect!
Salesforce Distributed Marketing – When you utter the name of a brand and people are able to instantly recognize, it’s not just because they know…
What is Salesforce: An Ultimate Guide To Salesforce
Cloud Computing Technologies has expanded in popularity in recent years. Salesforce is one such technology that has had a profound effect on the world of…
How do I Choose a Salesforce Implementation Partner?
Hey there! If you’re reading this, chances are you’re looking to take your business to the next level with Salesforce. That’s a fantastic move! Salesforce…
Popular Salesforce Videos
How to Prepare for Salesforce Platform App Builder (CRT-402) ?
The Salesforce Platform App Builder certification focuses on the different declarative functions available to an admin. Development and code are not included, but it focuses…
LWC Interview Questions -1 ( Freshers)
In this video, Kumar Salesforce provides a list of LWC Interview Questions that may be helpful for those who are just starting out. Watch this…
How To Change Opportunity Stages In Salesforce
If you're finding that you need to change the stages of opportunity in Salesforce, don't worry, it's easy to do. In this video, Gary Smith…