網頁編程-後端

來源:互聯網
上載者:User

標籤:定義   字串   表示   資料   exec   bsp   支援   組件   判斷字串   

 1.jsRegex  http://www.cnblogs.com/wupeiqi/articles/5602773.html

    test   - 判斷字串是否符合規定的正則

        

       Regex: rep = /\d+/

       rep.test(‘aas99sj‘)    #true

      Regex: rep = /^\d+$/   #開始符,終止符

       rep.test(‘aas99sj‘)    #false

 

    exec  - 擷取匹配的資料

       Regex: rep = /\d+/

       rep.exec(‘wuli_48_hong_34‘)    #t[‘48’]

      分組:

           Regex: rep = /\bwu\w*b/

           rep.exec(‘wuli_48_hong_34‘)    #t[‘wuli’]

          分組後:

           Regex: rep = /\bwu(\w*)b/

           rep.exec(‘wuli_48_hong_34‘)    #t[‘wuli’,‘li‘]

      全域匹配

           Regex: rep = /\bwu\w*b/g   加上g

           rep.exec(‘wuli_48_wung_34‘)    #執行第一次[‘wuli’]

           rep.exec(‘wuli_48_wung_34‘)    #執行第二次[‘wung’]

         

1、定義Regex

    • /.../  用於定義Regex
    • /.../g 表示全域匹配
    • /.../i 表示不區分大小寫
    • /.../m 表示多行匹配
      JS正則匹配時本身就是支援多行,此處多行匹配只是影響Regex^和$,m模式也會使用^$來匹配換行的內容)

 

          

 

 

 2.組件

    bootsrap

      -css

      -js

 

 3.web架構

 

 4.Django  -最齊全的架構

網頁編程-後端

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.