MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day14/code/day14_Regex/src/cn/itcast_04/RegexDemo.java:9–18  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7 */
8public class RegexDemo {
9 public static void main(String[] args) {
10 // ������̳�в��ܳ��������ַ�����*�滻
11 String s = "hellowodekahaoshi62212934564347892nikyidaqiangeiwoxiexie13212345678gaowoyishen";
12
13 // String ss = s.replaceAll("\\d", "*");
14 // String ss = s.replaceAll("\\d", "");
15 String ss = s.replaceAll("\\d+", "***");
16
17 System.out.println(ss);
18 }
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected