Profile
Achievement
remotezygote's Recent Snippets
- All /
« Prev 1 Next »
This will get the document's body in a very agreeable manner - it returns the first div on the page if there is no body (hey it can happen).
Adapted from code by Scott Schiller
0
577
posted 15 years ago by remotezygote
Matches are as follows:
0 = protocol
1 = fqdn
2 = subdomain
3 = top level subdomain
4 = domain (blah.com)
5 = port
6 = path
7 = query string
8 = hash
1
843
posted 15 years ago by remotezygote