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>