How to Sanitize Blog Title, to use as Permalink, in Java Cómo Desinfecte Blog título, para su utilización como permanente, en Java
Most Blog software provides an option to use a sanitized version of the post title as part of permalink url. La mayoría de blogs de software proporciona una opción para utilizar una versión desinfectarse del puesto título, como parte de permalink url. Thingamablog, a Java based offline blogging software, doesn’t do it. Thingamablog, un fuera de línea basado en Java software de blogs, no lo hace. So I decided to create one for myself in Java. Así que decidí crear uno para mí en Java.
To see an example of what I am talking about, see the permalink (permanent link) of this post - Para ver un ejemplo de lo que estoy hablando, ver el permalink (enlace permanente) de este puesto -- 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. Contiene el título (Cómo Desinfecte Blog título, para su utilización como permanente, en Java) con '-' como separador, y sin espacios, signos de puntuación, etc
Here is what you would do to sanitize any text in Java: Esto es lo que usted haría para desinfectar cualquier texto en Java:
title.replaceAll(”[\W]+”, “-”) title.replaceAll ( "[\ W] +", "-")
Note: The second argument is the separator to use. Nota: El segundo argumento es el separador a utilizar.
That’s it! Eso es todo! Isn’t Java simple? Java no es simple?
Filed under Filed under CMS Software CMS Software , How To Cómo , Java Software El software de Java , Pro Blogging Blogging Pro , Web | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Enviar artículo
You may also like to read También puede leer |





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