How to remove special characters from an ArrayList?

I have an ArrayList like this: [['something:','outside,,']]

and I want to remove all the special characters.

How can I do that ?

Answers


Create a regex which matches with your criterias. And then loop through your list.

String myRegex = "[^a-zA-Z0-9]";

int index = 0;
for (String s : list)
    list.set(index++, s.replaceAll(myRegex, ""));

Need Your Help

How to make my scoring system update the right variable?

actionscript-3 flash

Please take a look at my code at http://pastebin.com/nHB81pVW

Setting downIcon in Flex 4.7

actionscript-3 flex mobile flex4.5

I Don't know how to set a downicon. In Flex 3 it was very easy because of the style property in the button. But how do you set a different downicon for a button in a Flex 4.7 mobile project?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.