<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>How to Validate a URL in PowerApps on That API Guy</title>
    <link>/tags/how-to-validate-a-url-in-powerapps/</link>
    <description>Recent content in How to Validate a URL in PowerApps on That API Guy</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 18 Sep 2019 14:46:59 +0000</lastBuildDate>
    <atom:link href="/tags/how-to-validate-a-url-in-powerapps/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Validate a URL in PowerApps</title>
      <link>/posts/validate-a-url-in-powerapps/</link>
      <pubDate>Wed, 18 Sep 2019 14:46:59 +0000</pubDate>
      <guid>/posts/validate-a-url-in-powerapps/</guid>
      <description>&lt;p&gt;Do you have a form where you ask a user to enter a website URL ?&lt;/p&gt;
&lt;p&gt;There is no direct way to validate URL in PowerApps today, however, you can use &lt;a href=&#34;https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch&#34;&gt;IsMatch&lt;/a&gt; function along with &lt;a href=&#34;https://www.regextester.com/94502&#34;&gt;Regular Expressions&lt;/a&gt; to do this.&lt;/p&gt;
&lt;p&gt;Here is the expression you need to validate a URL -&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;IsMatch(URL_Input.Text, &amp;#34;(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&amp;amp;&amp;#39;\(\)\*\+,;=.]+$&amp;#34;)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;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.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
