Python Hapus string dari string
s = 'ab12abc34ba'
print(s.replace('ab', ''))
Mysterious Mole
s = 'ab12abc34ba'
print(s.replace('ab', ''))
varible.replace(letter, "") # blank quotes.
# e.g.
s = "Hello World"
print(s.replace('e', ""))
# Hllo World
# great for data cleansing
public extractLetters(String str){
String result="";
for(int i= 0; i< str.length; i++){
if(Character.isLetter(str.charAt(i))){
result+=str.charAt(i);
}
}