一、概念 正则表达式是一种文本处理工具,通常用来检索、替换某个符合规则或者模式的文本。 二、字符串中的使用 1.通过String的matches()方法可以验证一个字符串是否匹配某个正则表达式(返回值,boolean),常用于检查某个字符串是否符合特定规则。 2.split()方法可以将字符串从正则 ...
分类:
编程语言 时间:
2021-06-05 17:43:19
阅读次数:
0
修改build.gradle文件 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { goog ...
分类:
移动开发 时间:
2021-06-04 19:09:13
阅读次数:
0
1、引入bootstrap和validate <script src="{% static 'js/jquery.min.js' %}"></script> <link href="{% static 'css/bootstrap.css' %}" rel="stylesheet"> {# 前端校验 ...
分类:
其他好文 时间:
2021-06-04 18:44:54
阅读次数:
0
HTML-body区域常用标签 文本标签 标题标签 <h1>标题</h1> 字体标签 <b></b><strong>加粗</strong> <sup>上标</sup> <sub>下标</sub> <s>删除线</s> <u>下划线</u> <i></i><em>斜体</em> <code></cod ...
分类:
Web程序 时间:
2021-06-04 18:43:36
阅读次数:
0
创建第一个启动shell脚本,如tomcat_restart.sh,内容 #/bin/sh tomcatmsg=$(ps -ef|grep tomcat|awk '{print $1$8}'|grep '/xxxx/xxx/xxxx/jdk/bin/java/'|wc -l) if [ $tomca ...
分类:
系统相关 时间:
2021-06-03 18:29:06
阅读次数:
0
测试 public static void main(String[] args) { // 将 pojoList 转换至 dtoList 中 List<Student01> dtoList = new ArrayList<>(); List<Student01> pojoList = new Ar ...
分类:
其他好文 时间:
2021-06-03 18:00:12
阅读次数:
0
文件以及文件夹帮助类(FileHelper) 代码: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threadi ...
分类:
其他好文 时间:
2021-06-03 17:58:33
阅读次数:
0
1.awk system echo ${VAR1}|awk '{run=$0;system(run)}' 2.eval eval 是在当前进程执行,类似于函数,在当前进程中新开一层栈执行,执行完弹栈恢复。 3.exec exec也是在当前进程执行,但它不会恢复,也就是会修改进程当前栈的环境变量。 ...
分类:
系统相关 时间:
2021-06-03 17:47:16
阅读次数:
0
SET赋值 SET server:name "fido" GET server:name => "fido" EXISTS判断值是否存在 EXISTS server:name => 1 EXISTS server:blabla => 0 INCR增加DECR减少 原子性,同时发生的事务不会影响正确结 ...
分类:
数据库 时间:
2021-06-02 20:44:24
阅读次数:
0
ExecutorService executorService = Executors.newSingleThreadExecutor(); Future<String> future = executorService.submit(() -> myJob(param)); try { //设置超 ...
分类:
编程语言 时间:
2021-06-02 20:35:20
阅读次数:
0