function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anil savaliya 11anil savaliya 11 

Get Value between Two Special character without running for loop

Hello,

I have soql strig like
String Input = 'Client_Name_c = Att,Status = Finish,Description=Hi,Eventi_Attendees__c=test@test.com';
Need
String OutPut = 'Att,Finish,Hi,test@test.com';

I need just value ,Not label.I know ,I can do with For Loop,But runnning with large data so CPU limit is hitting.

Any idea ? I think something possible with Pattern,But I don't know how to use pattern? Please give pattern String If it's possible ?

Thanks in Advance,
Anil




Ankit AroraAnkit Arora
In any way if you want to parse a large data set then you may hit govenor limit. Can we optimize your for loop?