답변 4개
Hi Idan,
You can try below code in Apex to retrive last part of URL
String sEmail = 'http://www.idan.gev.com.alert';
integer strEmail2 = sEmail.lastIndexOf('.');
String strEmail3 = sEmail.substring(strEmail2);
system.debug(strEmail2 +'-'+strEmail3);
Please let me know if it is useful (or) Any help required.
Thanks & Regards
Madhukar