程序猿阵线联盟-汇总各类技术干货

正则表达式 i love you 实例

2019-04-16  本文已影响2人  小明同学机器人

很有意思的代码 最简单的输出语句 最有意思的写法


那个字符串就是迷惑人的 代码就两行

public class Iloveyou {

public static void main(String[] args) {

String text ="*$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$I$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$ $^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$l$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$o$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$v$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$e$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$ $^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$y$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$o$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$u$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^***$#E%YF$#E%$&&%$@*^$$^*&^**$#E%YF$#E%$&&%$@*^$$^*&^*3289429jlksnjfk02930442*(^%$&$#^Y***$#E%YF$#E%$&&%$@*^$$^*&^**";

String regedit ="\\$[\\w|\\s]{1}\\$";

Pattern pattern1 = Pattern.compile(regedit);

Matcher matcher2 = pattern1.matcher(text);

StringBuffer stringBuffer =new StringBuffer();

while (matcher2.find()) {

String s = matcher2.group().replaceAll("\\$","");

stringBuffer.append(s);

}

System.out.println(stringBuffer);

}

}

上一篇下一篇

猜你喜欢

热点阅读