zoukankan
html css js c++ java
正则表达式中点“.” 的用法 -- 两位小数正则
1.正则中的“ .” 在中括号的外部,表示任意字符。如果要表示圆点字符本身,需要用反斜刚“”转义
如表示小数点:
const regular = "^(([1-9]{1}\d{0,3})|(0{1}))(\.\d{0,2})$"
onst reg = new RegExp(regular);
if (reg.test(testNumber)) {
}
2.在中括号的内部,表示圆点.这个字符本身
查看全文
相关阅读:
[Noip2017]逛公园
[NOI2005]瑰丽华尔兹
codeforces 558E A Simple Task
bzoj1812 riv(树形背包)
bzoj 1009 GT考试
bzoj1030 文本生成器 Trie图+dp
bzoj1500 维修数列(splay)
[NOI2008]假面舞会
测试用例的基本知识
使用Xmind编写测试用例
原文地址:https://www.cnblogs.com/zhujin/p/12460464.html
最新文章
bzoj 4555
bzoj 1004
多项式问题之四——多项式对数
多项式问题之三——多项式开根
多项式问题之二——多项式除法
多项式问题之一——多项式求逆
生成函数初探
luogu 2000
codevs1288 埃及分数
HDU
热门文章
a+b
平面最近点对(分治)
CF1000G Two-Paths
CF1015F Bracket Substring(dp+Trie图)
CF1065D (Wa)Three Pieces
CF 1005F Berland and the Shortest Paths
CF 919F A Game With Numbers
CF 1029E Tree with Small Distances
CF 1042F Leaf Sets
CF 1051F The Shortest Statement
Copyright © 2011-2022 走看看