Vixual / 122 posts / tags / 63 comments / feed / comments feed /
Search:

Posts Tagged ‘regular’


樣式比對

var mail = "yourname@domain.name";
var re = /^.+@.+\..+$/;
if(re.test(mail)){  alert("pass");  }

樣式取代

參考網頁

  1. 規則運算式簡介
  2. 規則運算式語法
  3. 石頭閒語: Regular Expression(RegExp) in JavaScript

在國外有一些網站,專門存放一些程式碼的精華片段,寫程式如果遇到瓶頸,可以上來逛逛…

Coding

Regular Expression