一些正则表达式示例 0-1000 可以有一位有效小数: JS /^1000$|^(?!0d)d{1,3}(.[1-9])?$/ 取图片中的路径(src) C#: Regex reg = new Regex("(?<=img[^>]*src=")[^"]+");