-
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
What to Expect from Dreamforce 2024: Salesforce AI and Future Technologies
Dreamforce 2024 is rapidly approaching, and excitement is at an all-time high. Dreamforce, held in San Francisco, USA, is the main gathering place for tech…
How I Failed to Upsell to a Customer Because I Recommended Salesforce Professional Edition
I am sharing this story because of how important it is for consultants like myself to not make hasty decisions when making recommendations on Salesforce…
What is The History of CRM and How is it Important in Today's Day and Age? | Salesforce
Customers are the most important asset to any business no matter what industry you belong to, what your focus is, or what kind of products…
Popular Salesforce Videos
Can I Get a Job by Just Learning Salesforce Admin?
In this Video Shrey covered the following questions: 1. Can I get a job by just learning Salesforce Admin? 2. Can you start a career…
Salesforce Demo - Sales Dashboard Example
Our team created a comprehensive sales dashboard for one of our clients. We're posting this video about it to generate feedback and additional ideas for…
How Is The Future Of Salesforce?
Wondering about the future of Salesforce? Join this useful group for Salesforce job & career info and get all the details you need.