随笔分类 -  正则表达式

Java正则表达式使用
摘要:原文:https://www.runoob.com/java/java-regular-expressions.html 概要: 案例1:(文本中提取用户信息) 案例2: 文件后缀匹配 基本讲解 ~~~~~ 案例:(文本中提取用户信息) Pattern emailPattern = Pattern. 阅读全文
posted @ 2020-02-16 15:17 lshan 阅读(259) 评论(0) 推荐(0)
subline 正则替换
摘要:目的: 将如下改写成 "key":"value" 形式 方案:使用正则: Find What : ^(.*)=(.*)$ replace With "\1" : "\2" 阅读全文
posted @ 2019-11-16 19:32 lshan 阅读(213) 评论(0) 推荐(0)
python mongo
摘要:参考菜鸟教程: https://www.runoob.com/python3/python-mongodb.html pip3 install pymongo 创建数据库,表,添加数据 #encoding=utf-8 #!/usr/bin/python3 import pymongo myclien 阅读全文
posted @ 2019-10-10 18:31 lshan 阅读(195) 评论(0) 推荐(0)
regex java 常用正则表达式:
摘要:java 常用正则表达式: 1 数字:^[0-9]*$ 2 n位的数字:^\d{n}$ 3 至少n位的数字:^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0 阅读全文
posted @ 2019-06-24 11:01 lshan 阅读(542) 评论(0) 推荐(0)
springboot mongo 动态查询与分页 mongoDB 正则表达式 (mongoTemplate )(1)
该文被密码保护。
posted @ 2018-11-22 18:24 lshan 阅读(18) 评论(0) 推荐(0)