article directory
-
- BB </ li>
- implementation </ li> </ ul>
BB
has a string sent from the front, in the form of letter + English, to get the letter to change color for it, so split. It USES the built-in method of String. When I look back, I see there are 60 or 70 methods in 1.8, so I have to write the String carefully when I have time.
implementation </ h2>
</ p>code
//比如字符串为:Fn9527 String asid = "Fn9527"; String str = asid.replaceAll("[0-9]",""); String num = asid.replaceAll("[a-zA-Z",""); //syso //syso
</ p>
result
Fn 9527
</ div>
Read More:
- How to replace strings in VIM
- How to use Python split() function (split array)
- Java uses regular expressions to intercept the contents between specified strings
- The conversion between [Python] bytes and hex strings.
- 43. Implementation of the shortest code of multiply strings | Java
- Python: crawler handles strings of XML and HTML
- After upgrading php7, PHP program prompts an error: operator not supported for strings in causes and Solutions
- Shell removes double quotes from strings
- [jQuery] jQuery operates on JSON strings or JSON objects
- How to restrict input field to only input pure numbers in HTML
- [solution] Python flash database migrate error type error: option values must be strings
- python reads csv file is an error _csv.Error: iterator should return strings, not bytes (did you open the file in text)
- Split keyword in ABAP when the separator is at the beginning and end of the string
- A repeated string is composed of two identical strings. For example, abcabc is a repeated string with length of 6, while abcba does not have a duplicate string. Given any string, please help Xiaoqiang find the longest repeated substring.
- Split screen display method in IntelliJ idea
- Java String.split () special character processing
- The sum of the two numbers of leetcode
- How to set the custom blood bar UI in UE4 and how to call it
- How to print how to output Int64_ t,uint64_ The value of T in C
- How to save big data in Oracle to CLOB