-
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
Play Around Salesforce Batch Apex And Schedule Apex
Batch Apex Batch Apex classes are beneficial if the task is something to run large jobs like thousands or millions which is exceeded than normal…
Salesforce Automation Tools Overview
A Salesforce Implementation can help migrate all your customer, sales and interactions data into one place and standardize business processes. This allows all sales staff…
Sharing Rules In Salesforce Security
Sharing Rules Utilize sharing principles to stretch out sharing access to clients out in open gatherings, jobs, or regions. Sharing standards give specific clients more…
Popular Salesforce Videos
How To Become A Salesforce Admin?
Wondering how t become a Salesforce Admin. Watch out for this tutorial video, it will answer all your questions. Join this useful group for Salesforce…
Create a LinkedIn Page like a Salesforce Professional
In this first video of our series "How to Find a Job as a Salesforce Professional", Brad discusses how to create and modify your outdated…
Salesforce Service Cloud Telephony
Natterbox CTI and Telephony inside Salesforce ServiceCloud. Transform your telephony experience and empower your agents with fast and personalised support.