URL Regex
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Mashed in the middle of a bunch of HTML. Honestly, I'd do a strip_tags() type thing, then massage from there, if necessary.Zoxive wrote:Thats what i thought, but there is an IP.Jcart wrote:What URL?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
/>([0-9\.:]+)/mNo need to escape metacharacters inside a character class.Jcart wrote:Code: Select all
/>([0-9\.:]+)/m
Code: Select all
/>([0-9.:]+)/m- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: