Answers for "remove all special character from string apex"

0

remove all special character from string apex

String strText = 'Welcome - to! % $sale&sforce \\ /code # crack %';
strText = strText.replaceAll('[^a-zA-Z0-9\\s+]', '');
System.debug('strText ======> '+strText);
Posted by: Guest on August-19-2020

Code answers related to "remove all special character from string apex"

Browse Popular Code Answers by Language