Most Blog software provides an option to use a sanitized version of the post title as part of permalink url. La maggior parte dei blog software fornisce un opzione per l'utilizzo di un sterilizzate versione del post titolo come parte di permalink url. Thingamablog, a Java based offline blogging software, doesn’t do it. Thingamablog, basato su una Java offline software blogging, non farlo. So I decided to create one for myself in Java. Così ho deciso di creare uno per me stesso in Java.

To see an example of what I am talking about, see the permalink (permanent link) of this post - Per vedere un esempio di cosa sto parlando, vedere il permalink (permanente) di questo post -- http://blog.taragana.com/index.php/archive/how-to-sanitize-blog-title-to-use-as-permalink-in-java/ . It contains the title ( How to Sanitize Blog Title, to use as Permalink, in Java ) with ‘-’ as separator, and without spaces, punctuations etc. Essa contiene il titolo (Come sterilizzare titolo di Blog, per usare come Permalink, in Java) con '-' come separatore, e senza spazi, segni ecc

Here is what you would do to sanitize any text in Java: Ecco cosa si dovrebbe fare per sanitize qualsiasi testo in Java:
title.replaceAll(”[\W]+”, “-”) title.replaceAll ( "[\ W] +", "-")

Note: The second argument is the separator to use. Nota: Il secondo argomento è il separatore da usare.

That’s it! Questo è tutto! Isn’t Java simple? Java non è semplice?