How to Sanitize Blog Title, to use as Permalink, in Java Come sterilizzare titolo di Blog, per usare come Permalink, in Java
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?
Filed under Elencato sotto CMS Software CMS Software , How To Come , Java Software Software Java , Pro Blogging Pro Blogging , Web | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |





February 15th, 2007 at 6:38 am 15 febbraio 2007 alle 6:38 am
بدالله عبدالقوي غانم الحميري طالب جامعي من مواليد الدير عوابل شعوبة مديرية المعافر حجرية محافضة تعز طالب جامعي جامعة صنعاء كلية التجارة بدالله عبدالقوي غانم الحميري طالب جامعي من مواليد الدير عوابل شعوبة مديرية المعافر حجرية محافضة تعز طالب جامعي جامعة صنعاء كلية التجارة