常用正則(更新中)

2021-10-25 09:15:26 字數 765 閱讀 5207

import react,  from 'react';

import from "antd";

export default class home copy extends component $/;

let reg4 = /^[a-za-z]\w$/;

let reg5 = /^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d$/

let reg6 = /^[1-9]\d((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d$|^[1-9]\d[1-9]\d((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d([0-9]|x)$/;

if (reg1.test(name))

if (reg2.test(code))

if (!reg3.test(id))

if (!reg4.test(password))

if (!reg5.test(phone))

if (!reg6.test(peopleid))

// ^: 匹配輸入字串的開始位置,除非在方括號表示式中使用,當該符號在方括號表示式中使用時,表示不接受該方括號表示式中的字元集合。

}render()

}let reg2 = new regexp("[^a-za-z0-9\_\.]", "i");

if (reg2.test(code1)) ;

Oracle常用函式(更新中)

1.substr函式 擷取 substr 字串,擷取開始位置,擷取長度 返回擷取的字 substr hello world 0,1 返回結果為 h 從字串第乙個字元開始擷取長度為1的字串 substr hello world 1,1 返回結果為 h 0和1都是表示擷取的開始位置為第乙個字元 subs...

mysql常用操作 更新中

1 因某些原因進不去資料庫 例項 重置mysql密碼 vim my.cnf 在 mysqld 下新增 skip grant etc init.d mysqld restart 進入資料庫就無需密碼驗證 mysql update user setpassword password your passw...

Linux常用指令(更新中)

sz home admin hxx89793 ts web ts web ts web ts ticket check 2.從本地上傳檔案到伺服器 rz e filename 為避免上傳的時候顯示亂碼,需要加命令 e sudo rz be 檔案較大如百兆以上,可以重新進入一下系統,百分百成功 2.c...