You need to sign in to do that
Don't have an account?
Linda 98
Capture data till line break in apex
Hi i have a use case that i need to capture data till line break and save it in varibale.
Any help on this please!!!!!!!
For example: My data is like this:
test name
Street
city,state zip,
Country
I need to get test name in to a variable and use it.Line break is only common in my data so no other way...:(
Any help on this please!!!!!!!
For example: My data is like this:
test name
Street
city,state zip,
Country
I need to get test name in to a variable and use it.Line break is only common in my data so no other way...:(
please try
String [] streetA = street.split('[\n\r]');
for(Integer i = 0; i < streetA.size(); i++)
system.debug(streetA[i]);