Search the Community
Showing results for tags 'printf'.
The search index is currently processing. Current results may not be complete.
Is it possible to use a formatting (escape) sequence in the Java printf statement to remove specific characters from the string argument? For example, if I have a string like, "[0, 1]", is there a formatting string I can use to remove the left and right bracket characters ()? Is there a "regular expression" for the Java printf statement that will filter out those characters?