
Sample Code:
String tempStr = 'Testing @ π π Sample % π π π π€£ β βοΈ βοΈ π₯° Example';
System.debug( 'Text wtih Emojis: ' + tempStr );
String strRegex = '[^\\p{L}\\p{N}\\p{P}\\p{Z}]';
String str = tempStr.replaceAll( strRegex, '' );
System.debug( 'Text without Emojis: ' + str );
Output:
