Validate a URL in PowerApps

Do you have a form where you ask a user to enter a website URL ? There is no direct way to validate URL in PowerApps today, however, you can use IsMatch function along with Regular Expressions to do this. Here is the expression you need to validate a URL - IsMatch(URL_Input.Text, "(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$") That’s it, now you can use this to change the border-color of the Text Input box so that the app user knows when he URL entered is incorrect. ...

Sep 18, 2019 · 2 min · Vivek Bavishi