1.js Regular Expression http://www.cnblogs.com/wupeiqi/articles/5602773.html
Test-Determines whether a string conforms to the specified regular
Regular expression: Rep =/\d+/
Rep.test (' AAS99SJ ') #true
Regular expression: Rep =/^\d+$/#开始符, Terminator
Rep.test (' AAS99SJ ') #false
EXEC-Get matching data
Regular expression: Rep =/\d+/
Rep.exec (' wuli_48_hong_34 ') #t [' 48 ']
Group:
Regular expression: Rep =/\bwu\w*b/
Rep.exec (' wuli_48_hong_34 ') #t [' Wuli ']
After grouping:
Regular expression: Rep =/\bwu (\w*) b/
Rep.exec (' wuli_48_hong_34 ') #t [' Wuli ', ' Li ']
Global match
Regular expression: Rep =/\bwu\w*b/g Plus g
Rep.exec (' wuli_48_wung_34 ') #执行第一次 [' Wuli ']
Rep.exec (' wuli_48_wung_34 ') #执行第二次 [' Wung ']
1. Define Regular expressions
- /.../for defining regular expressions
- /.../g represents a global match
- /.../i indicates case insensitive
- /.../m for multi-line matching
JS regex matches itself to support multiple lines, where multiple lines match only affect the regular expression ^ and $,m mode will also use ^$ to match the contents of the newline)
2. Components
Bootsrap
-css
-js
3.web Frame
4.Django-the most complete frame
Web programming-back end