In Dart language how can i remove all brackets which i have integers between them, for example in this below string i want to remove [1] and [100]. integers of between brackets aren't specific
with this code i can remove all brackets but i can't remove all integers
String s = "Hello, world![1] i am 'foo' [100]";
print(s.replaceAll(new RegExp(r'(?:_|[^\w\s])+'),''));
output:
Hello, world!1 i am 'foo' 100
that should be:
Hello, world! i am 'foo'