1. How to Remove Special Characters and Get Alphabets and Numbers?
String str = "#@F&L^&%U##T#T@#ER###@#@M*(U@&#S%^%2324@*(^&";
String result = str.replaceAll(RegExp('[^A-Za-z0-9]'), '');
print(result); //Output: FLUTTERMUS2324
2. How to Remove Special Characters and Get Alphabets only?
String str1 = "#@F&L^&%U##T#T@#ER###@#@M*(@&#S%^%2324@*(^&";
String result1 = str1.replaceAll(RegExp('[^A-Za-z]'), '');
print(result1); //Output (Allphabets Only): FLUTTERMS
3. How to Remove Special Characters and Get numbers only?
String str2 = "#@F&L^&%U##T#T@#ER###@#@*(@&#%^%2324@*(^&";
String result2 = str2.replaceAll(RegExp('[^0-9]'), '');
print(result2); //Output (Numbers Only): 2324
4. How to Remove Special Characters and Get numbers only?
String str3 = "#@F&L^&%U##T#T@#ER###@#@*(@&#%^%2324@*(^&";
String result3 = str3.replaceAll(RegExp('[^A-Za-z0-9]'), '.');
print(result3);
//Output: ..F.L...U..T.T..ER....2324.....