MyBB Community Forums

Full Version: URL regex
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-05-12, 09:54 PM)frostschutz Wrote: [ -> ]Consider making use of PHP's parse_url() function instead of using some hard to understand regex.

This function is not meant to validate the given URL ~PHP.net




(2011-05-12, 10:21 PM)Aries-Belgium Wrote: [ -> ]
(2011-05-12, 09:41 PM)Darth Stabro Wrote: [ -> ]And what's a regex for upper and lowercase letters, dashes, and numbers?

[A-Za-z0-9\-]

Thanks

Pages: 1 2