正则表达式 i love you 实例

作者: 小明同学机器人 | 来源:发表于2019-04-16 13:37 被阅读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);

}

}

相关文章

网友评论

    本文标题:正则表达式 i love you 实例

    本文链接:https://www.haomeiwen.com/subject/xacbwqtx.html