Most Blog software provides an option to use a sanitized version of the post title as part of permalink url.ほとんどのブログを使用するオプションを提供するソフトウェアのバージョンの消毒の一環として固定リンク投稿のタイトルを入力します。 Thingamablog, a Java based offline blogging software, doesn’t do it. thingamablogは、 Javaベースのオフラインbloggingソフトウェアに、ではないことです。 So I decided to create one for myself in Java.だからぼく自身のための1つを作成することを決定しています。

To see an example of what I am talking about, see the permalink (permanent link) of this 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.それには、タイトル(不適切な部分を削除する方法をブログのタイトル、固定リンクを使用するとして、 Javaで)としての' -'区切り、とせず、スペース、 p unctuations等

Here is what you would do to sanitize any text in Java:ここではどのようなときと同じように任意のテキストを消毒するジャワ:
title.replaceAll(”[\W]+”, “-”) title.replaceall ( " [ \ワット] + " 、 " -" )

Note: The second argument is the separator to use.注意: 2番目の引数は、区切り文字を使用しています。

That’s it!それだよ! Isn’t Java simple?ジャワ単純ではないですか?