Skip to main content
September 14, 2022
Solved

How to validate URL in filelocation field

  • September 14, 2022
  • 6 replies
  • 0 views

Hi , 

kindly suggest validation for URL. 

thanks in advance

    Best answer by harshitb6843

    Regex will work like a charm but you can also use code like left(local!URL,8)="https://"

    6 replies

    harshitb6843
    September 14, 2022

    You can use a regex to validate the syntax of the URL but to check fi the URL is live or not, you might have to use a service. 

    September 14, 2022

    without regex cant we use?

    harshitb6843
    September 14, 2022

    What actually do you want to validate? 

    puneets0004
    September 14, 2022

    please refer the below regex for validate the URL (Valid or not).

    regex = “((http|https)://)(www.)?” 
    + “[a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]” 
    + “{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)”