Dart – how you can substitute brackets in a single RegExp?

I want to delete ‘)’ and ‘( from string’. I do know sizzling to delete them one at a time:

String strinWithoutLeftBracket = cutString.replaceAll(RegExp(r'((+)’), ”);
String strinWithoutRightBracket = strinWithoutLeftBracket.replaceAll(RegExp(r'()+)’), ”);

However how you can do it in a single replaceAll funtion?



View Reddit via Particular_Hunt9442View Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com