-
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
How Salesforce Revenue Cloud Can Drive Revenue Growth Across Sales and Finance Through Revenue Operations (Revops)
In today’s business landscape, companies across the globe are redefining their sales and finance revenue operations (RevOps) to meet fluctuating customer requirements and fluid market…
Why there is a need for Salesforce Custom Development?
In today’s dynamic business landscape, Salesforce has established itself as the leading CRM platform that enables companies to streamline operations, drive growth, and maintain exceptional…
Implementation of Dynamic Search in Salesforce Lightning Component
Today, I am sharing the code, that, how you can implement Dynamic Search using Lightning Component. For this task, we need three things:- A Lightning…
Popular Salesforce Videos
Why iCompliance Trusts TechForce Services for Salesforce Managed Services | Client Testimonial
At iCompliance, delivering trusted AFSL compliance services requires seamless operations and efficient technology. That’s why they turned to TechForce Services for Salesforce Managed Services. In…
Salesforce Pardot: 2020 Update
If you’re a current Salesforce user, you may be hearing a lot about Pardot these days. Perhaps you are using MailChimp, Campaign Monitor, or Constant…
Find Newly Created Fields in Salesforce
In this series, we do a deep dive into a specific business problem and share how one #AwesomeAdmin chose to solve it. Once you learn…