songzblin's recent timeline updates
songzblin

songzblin

V2EX member #513412, joined on 2020-10-19 15:45:57 +08:00
songzblin's recent replies
c29uZ3pibGlua0AxNjMuY29t
@zhongchaowade 老哥成都哪家公司呀
草台班子拉我一个,后端开发
想到了自己写过的一个 java 工具类,添加水印。一开始弄的把水印和图片放指定文件夹里边,命令行运行就好,后来更新成工具类的时候脑子抽了把写的东西删干净了。
分子
利用了正则表达式,希望有帮助
String sourceInfo = "[0:1.520,0:2.460,0] 喂,你好。";
String TimeRegex = "\\d+:\\d+.\\d+";
Pattern pattern = Pattern.compile(TimeRegex);
Matcher matcher = pattern.matcher(sourceInfo);
while (matcher.find()) {
// 两个时间
System.out.println(matcher.group());
}
String roleRegex = ",\\d+]";
pattern = Pattern.compile(roleRegex);
matcher = pattern.matcher(sourceInfo);
while (matcher.find()) {
// 身份
System.out.println(matcher.group().replaceAll(",|]", ""));
}
String infoRegex = "] .*";
pattern = Pattern.compile(infoRegex);
matcher = pattern.matcher(sourceInfo);
while (matcher.find()) {
// 信息
System.out.println(matcher.group().replaceAll("] ",""));
}
分子来了
Nov 4, 2020
Replied to a topic by couy 游戏 迫于无聊,用 vue 写了一个放置游戏
如果能添加十里坡剑神练级就更爽了,上瘾哈哈哈哈哈哈
能请教一下怎么实现的吗?
@PineappleBeers
@AaronLiu00
分子
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1171 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 23:13 · PVG 07:13 · LAX 16:13 · JFK 19:13
♥ Do have faith in what you're doing.