I have a list of strings and one if it’s items looks like this ’19-06-2022 12:37′ ..
How can i remove any pattern like this if it exist in the list using Dart language ?
>Solution :
You can remove any pattern from string by using String class method replaceAll. There are also other method like replaceFirst, replaceRange for more details Read Here
String testSt = "abcdefagha";
testSt.replaceAll("a","");