I'm looking for a more elegant alternative to: [a-z1-9.\/\:]+(.com|.net|.co)+[.A-Z1-9a-z]*
example: matches http://www.mydomain.com.au in http://www.mydomain.com.au/test.html
Can anyone suggest a way to replace that (.com|.net|.co) with an all-inclusive search?
:-) Much appreciated, Addam
Edit: chipmunk 2001-03-22
In reply to regex to extract fully-qualified domain name from full URL by AddamB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |