I'm trying to check a custom field for a URL string (any URL). I think I have the regex correct, but I haven't been able to get the syntax right.
RegEx = ^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$
Anyone have a snippet that does something similar?
Hey Scott!
I'd like to help you out here, but I'm not quite sure I understand what the issue is. This is probably a stupid question, but what do you mean when you say "I haven't been able to get the syntax right?" You don't think your Regex syntax is right?
Thanks!
Aidan
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.