[Java] When the replaceAll encountered (*)

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

code should be rewritten as:
String DownUrl = Url.replaceAll("\\(\\*\\)", "01");
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of [Java] When the replaceAll encountered (*)

  • Object is converted to JSON string

    Keywords: json package com.sy.test; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.HashMap; / ** * Providing the object is converted to JSON string method * @ Author author Li Youth * @ Version Version 0.01 * @ Filename ...

  • jsp page

    jsp page (switch) Keywords: jsp page public class PageHelper ( / / totalItem the total number of records, totalPage total number of pages, currentPage the current page, queryString on the connection address public static String getPageNav (int totalI ...

  • URLEncode Use

    Function Description: URLEncode: generally in the address bar the use of encryption in the text, the converted, the original plaintext string of characters will become encrypted, but the browser can be identified. URLDecode: converted to UTF-8 string ...

  • url contains a plus sign

    Some characters are escaped url, such as the space is encoded into a plus sign, then pass the parameters it is clearly a plus sign, get the value of the space has become. How do I solve it? If it is passed through the url parameters, we should exerci ...

  • Unicode encoded string transfer English

    HtmlParser package in the Chinese version of an analysis of the most basic html is: Its role is to <span> situation Ⅱ </ span> tag in the string between the extracted. It may be noted that the above labels are among a string of Unicode co ...

  • Do not use any loop and recursion, the output print n of (n> 1) "Hello World

    import java.util.Arrays; public class test ( public static void main (String [] args) ( String str = "Hello"; int num = 6; Object [] obj = new Object [num]; Arrays.fill (obj, str); String s = Arrays.toString (obj); s = s.replaceAll ( " ...

  • JavaScript Redirect

    The use of JavaScript can be user-oriented to a specific address, and the different ways the history of the browser will have different effects on record. 1, using the location.href, you can click your browser's back button to return to this page ...

  • DWR three linkage

    First of all, the introduction of the necessary js <script src=' The project name /dwr/interface/GetTrade.js'> </ script> to add the project name must be abnormal or <script src=' The project name /dwr/interface/GetArea.js& ...

  • Common js Select All checkbox button function

    Transfer from: http://stephen830.javaeye.com/blog/261154 Keyword: js Select All checkbox button WEB projects at about the Select All checkbox function will certainly be encountered, and each project will have a lot of places will be used. The following pu

  • JavaScript and jsp secondary structure linked the drop-down box without refresh

    Meeting (2005-10-25) finishing This article does not use Ajax technology, the use of a single deposit of JavaScript + Jsp + DHTML to achieve Paragraph keyword database table ID SuperID relations Select page to double Read data , achieve dynamic linked

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries