久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      用正則表達式表示不包含2950的字符串

      使用Excel中的VBA測試如下(匹配式為:^((?!2950).)*$):
      Sub Regs()
      Dim RegEx As Object
      Set RegEx = CreateObject(“VBScript.regexp”)
      Dim s, mat
      s = “399295078”
      RegEx.Pattern = “^((?!2950).)*$”
      RegEx.Global = True
      MsgBox RegEx.test(s)
      Set RegEx = Nothing
      End Sub
      如果匹配2950,則返會false,否則為true。
      其中,(?!2950)表示不匹配2950,
      而^表示匹配字符串的開始位置,
      .表示匹配除 “n” 之外的任何單個字符,
      $表示匹配字符串的結(jié)束位置,
      *表示匹配前面的子表達式零次或多次。
      整個匹配式連起來就是:匹配空值或者匹配不含2950的字符串。
      其中(?!2950)后面必須加一個“.”,那么(?!2950).表示不含2950且至少有一個字符。其實整個就是(?!2950)和(.)*的組合,(.)*表示空串或者任意一個串(不包含n)。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號