cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Validate url in forms using regex

Hello,

I'm trying to validate that a user enters a URL in a text field.  I am trying to use regex validation with the following string.

^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$

It works on a regex tester but not on the form.  Is there something I need to do to use it on the form, or is the pattern bumpkis?

Thanks for your help!

Labels: (1)
Tags (1)
Reply
2 Replies
Workflow Hero

Re: Validate url in forms using regex

I copied the string you provided and had no issues with it in either Standard or Responsive forms so I am unable to replicate the issue.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Validate url in forms using regex

quantum fart.  Went back in and added the exact same thing and it worked.

0 Kudos
Accept as Solution Reply