[Java] When the replaceAll encountered (*)

分类:Java 2010-03-29 来源:CodeWeblog.com 人气:248

Wishing
http://java.com/download/ (*). html
Becomes
http://java.com/download/01.html

code should be rewritten as:

String DownUrl = Url.replaceAll("\\(\\*\\)", "01");
本文关键词: html code replaceall
分享到:
blog comments powered by Disqus

相关文章

  • In java, you will utf-8 character code mapped into the Chinese 2010-03-29

    The following is a character code conversion tool. In this leave a mark can only be run under jdk1.6. utf16 this class jre / lib / rt.jar under. /* * (#)CharsetConvertor.java 1.0 2009-8-19 */ package com.codelib.util; import java.io.UnsupportedEncodingExc

  • jquery in dom action 2008-11-09

    1. Creating element nodes (1) to create two new elements <li> (2) these two elements into a document you can use jquery's factory function $ () to complete the format such as: $(html); // According to the incoming HTML markup string , Create a D

  • jquery dom in action 2010-03-11

    1. To create element nodes (1) create two new elements <li> (2) these two elements into the document you can use jquery's factory function $ () to complete the format such as: $(html); // According to the incoming HTML markup string , Create a D

  • Web page conversion of special characters, such as [image] 2011-01-02

    package com.email.util; public class BBCODE { / / / / [Img code = "1.jpg"] [img code = "2.jpg"] / / <img Src="1.jpg" /> <img src="2.jpg" /> public static String filter (String code) { / / Bold ... c

  • MyEclipse7.5 registration code generation and plug-ins installed 2010-03-17

    1, MyEclipse 7.5 registration code generator import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of

  • js code published test 2010-04-02

    /** * @author Star */ if(typeof(kaho) == 'undefined') var kaho = {}; /** * @type {object} */ kaho.util = { }; kaho.util.Borwers = { }; kaho.util.request = false; kaho.util.userId = ""; kaho.util.clientId = ""; kaho.util.pageUrl = ""; kaho.util.serverUrl =

  • Test java code using 2010-04-16

    package java2html; import java.io.*; /** * Java To HTML code <code><p>5555555555</p></code> * * @author llliiiuuu * @since 2008-12-16 * @version 0.1a */ public class JavaToHTML { public static void main(String[] args) throws IOExce

  • js the replaceAll () 2010-04-20

    js no java in the replaceAll () function, and java in order to achieve the replaceAll () the same effect, we can use the following code String.prototype.replaceAll = function (s1, s2) ( return this.replace (new RegExp (s1, "gm"), s2); )

  • String.replaceall () Xiangjie 2010-06-23

    Today, writing programs, experience URI's "/" conversion, see the String with replaceAll () function is used directly, but the eclipse has been error, do not know why, depressed for a long time. Search on the gg, read a long time, final

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.071 (s). 14 q(s)