命令格式:
 regexp_replace(source, pattern, replace_string, occurrence)

参数说明:
● source: string类型,要替换的原始字符串。
● pattern: string类型常量,要匹配的正则模式,pattern为空串时抛异常。
● replace_string:string,将匹配的pattern替换成的字符串
● occurrence: bigint类型常量,必须大于等于0,
大于0:表示将第几次匹配替换成replace_string,
等于0:表示替换掉所有的匹配子串。
其它类型或小于0抛异常。

 

正则确保用户输入的密码格式是:字母数字下划线[A-Za-z0-9_]

posted on 2022-03-04 15:35  顾念啊  阅读(387)  评论(0)    收藏  举报