Answers for "remove from an string"

19

remove from string python

"Str*ing With Chars I! don't want".replace('!','').replace('*','')
Posted by: Guest on May-13-2020
1

how to remove letters from string

public extractLetters(String str){
	String result="";
	for(int i= 0; i< str.length; i++){
	    if(Character.isLetter(str.charAt(i))){
	    result+=str.charAt(i);
	  	}
	}
Posted by: Guest on January-14-2021

Code answers related to "remove from an string"

Python Answers by Framework

Browse Popular Code Answers by Language