urls.py Regular Expressions
發表於 : 週六 8月 23, 2014 7:18 pm
^ Denotes start of string
$ Denotes end of string
r'^hello$'
The "r" before the first quote means "raw string" notation
To match any URL starting with "prefix/"
r'^prefix/.*$'
more about python regex: http://goo.gl/5uJsfy
$ Denotes end of string
r'^hello$'
The "r" before the first quote means "raw string" notation
To match any URL starting with "prefix/"
r'^prefix/.*$'
more about python regex: http://goo.gl/5uJsfy