-
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 Customer Portals Vs. Communities: What to Choose?
When we talk about CRMs or portals the first thing which comes to our mind is Salesforce. They are and have been ruling the industry…
Salesforce Apex Trigger - Count Number of Open Tasks and Closed Tasks on the Account.
Hello guys, Today, I'm sharing the trigger code that how you can count the number of open tasks and closed task on the account. For…
Salesforce Sales Cloud to Boost Revenue
Salesforce is the most powerful CRM platform that helps businesses achieve their day-to-day activities. You can handle profuse operations such as sales, customer service, marketing…
Popular Salesforce Videos
How Cyntexa Worked With PointCare To Build Heathcare Application On Salesforce | Client Testimonial
Meet Bart Collins, Director at TEM engineering who used our services for smoother product management by building a Healthcare application on the Salesforce platform. For…
Business Days in Salesforce CRM Analytics (Tableau CRM)
It's common for businesses to want to take business days into account when showing data on a dashboard in CRM Analytics (formerly Tableau CRM) to…
What are Salesforce Developer Edition?
Salesforce Developer Account is actually a free of cost account. If you wanted to explore and if you wanted to do the configuration practices or…