【发布时间】:2020-03-27 14:50:33
【问题描述】:
String text = "replace all characters" --> 22 characters
text.replaceAll(RegExp('.'), '*');
// result -> ********************** --> 22 characters
这样,所有的字符都会改变。如何排除空格字符。
// I want it this
// result -> ******* *** ********** -> Characters 8 and 13 are empty.
【问题讨论】:
标签: string dart replaceall