推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
fsy0718

/\x01#(\d+)/g 能匹配什么样的字符串

  •  
  •   fsy0718 · Dec 1, 2016 · 4978 views
    This topic created in 3625 days ago, the information mentioned may be changed or developed.
    8 replies  •  2016-12-01 22:21:25 +08:00
    flyingghost
    flyingghost
    Dec 1, 2016
    1
    以 0x01 打头的,跟一个#号的,后面一堆数字的字符串。
    0x01 是一个控制字符不是可显示字符。
    cabing
    cabing
    Dec 1, 2016
    2
    /\x01#(\d+)/g 你想匹配 html 中的 unicode 的数字?
    fsy0718
    fsy0718
    OP
    Dec 1, 2016
    3
    @cabing 我是看见 riot 的 compile 中有这样的一个正则,去匹配自定义 tag 中的属性
    TaMud
    TaMud
    Dec 1, 2016
    4
    难道 你们基础课里的 ACSII 的内容,你没有学过???
    fsy0718
    fsy0718
    OP
    Dec 1, 2016
    5
    @TaMud 野生程序员
    aleen42
    aleen42
    Dec 1, 2016
    6
    \x01 not printable, so '\x01#123', '‘\x01#1', ....?
    caola
    caola
    Dec 1, 2016
    7
    好像“#”号是注释吧
    nccers
    nccers
    Dec 1, 2016
    8
    具体问题具体分析了 vim JavaScript Perl Python 里面的正则表达式支持都不一样
    我只知道在 vim 里面\x 匹配 16 进制数字\d+匹配一个或多个数字其他内容匹配它本身
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2910 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:31 · PVG 20:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.