给出这个特定正则表达式背后的想法的原始问题是Regex to find content not in quotes。匹配字母数字,只有数字除外
我们只需要修改原来的样品一点点:
INSERT INTO Notifify (to_email, msg, date_log, from_email, ip_from)
VALUES
(
:to_email,
'test teste nonono',
:22,
:3mail,
:ip_from
)
我知道,开始用数字变量没有任何编程语言允许的,但是这并不意味着我们不能有场景中,我们只需匹配:to_email
或:3mail
和:ip_from
而不是:22
。
我们该如何进行?我和我的朋友尝试了(理论上只)这样 - >
- 存储所有字符串中的一组
- 减去仅包含数字
在线测试的设定,我使用 。