Notes
In Apex, the removeEndIgnoreCase()
method is used to remove the string provided from the given string but only if it occurs at the end. This method is not case-sensitive.
Here's an example:
String myStr = 'I have been learning Apex for couple days';
String result = myStr.removeEndIgnoreCase('for couple days');
System.debug(result);
Output: I have been learning Apex
Video
Video does not exists.