1

Possible Duplicate:
regex to find url in a text

Can I get a regular expression that will capture every URL from a string, I'd like to be able to pop a domain in the expression at some stage to limit captures. Much obliged.

Community
  • 1
  • 1
el_pup_le
  • 11,711
  • 26
  • 85
  • 142
  • what about "var regex = /http[s]?\:\/\/[a-zA-Z0-9]{1}[a-zA-Z0-9.-]+.[a-zA-Z]{2}/" ? – tsds Aug 08 '11 at 18:23

0 Answers0