使用正则表达式,我试图从 html 格式的电子邮件中提取生成的 6 位代码。我是这样做的。\d{6}
这会从 6 个元素的字母中提取所有数字,但问题是字母代码中的数字“333333”重复了几次。如何通过切断这些三元组来提取我需要的代码?在帮助和类似的情况下尝试过\d{6}[^3333333]
- 无济于事。我以前没有遇到过正则表达式。
主页
/
user-264262
JohnTit's questions
有一个带有输入的 HTML 代码,其中有数值,还有增加/减少按钮。如何使用 Jquery 在输入侧制作这些按钮?提前致谢。
<input type="number"
class="input-text qty text"
step="1" min="1" max=""
name="quantity_12730"
value="1"
title="Кол-во" size="4"
pattern="[0-9]*" inputmode="numeric">
function bind(method, context) {
var args = Array.prototype.slice.call(arguments, 2);
return function() {
var a = args.concat(Array.prototype.slice.call(arguments, 0));
return method.apply(context, a);
}
}