Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter replace character in string

newString = 'resume';
newString.replaceAll('e', 'é'); // it returns the string   'résumé'

// And you can use a regex to search like a needle in a haystack:
'resume'.replaceAll(RegExp(r'e'), ‘é’); // 'résumé'
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #flutter #replace #character #string
ADD COMMENT
Topic
Name
3+1 =