正则表达式 i love you 实例

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

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

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);

}

}

    原文作者:昭阳_88be
    原文地址: https://www.jianshu.com/p/80f1336c5dcc
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞