Skip to main content

Notifications

Community site session details

Community site session details

Session Id : yZtZojbpcG/PZUQoEhqQ8w
Power Apps - Building Power Apps
Answered

Need Help on Text Input Pattern Validation for IP Address

Like (0) ShareShare
ReportReport
Posted on 14 Feb 2022 06:17:22 by 22

Hi,

 

I`m trying to set validation for IP Address field, using IsMatch condition but was not able to get the exact output.

looking to validate the IP Address with CIDR like this format IP1/x,IP2/x,IP3/x

example : 172.0.2.1/32,157.123.34.3/24,10.23.2.1/24 etc

allow digit can be anything from 0 -255, i`m unable to do this. can someone here can help on this with IsMatch condition.

 

Thanks for help

  • venuvv Profile Picture
    22 on 16 Feb 2022 at 03:41:57
    Re: Need Help on Text Input Pattern Validation for IP Address

    Thanks a Lot. it did worked

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 16 Feb 2022 at 03:14:12
    Re: Need Help on Text Input Pattern Validation for IP Address

    Hi @venuvv,

    Please add a Label and set the Text property as below:

    IsMatch(TextInput10.Text, "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d|3[0-2]")

    vqiaqimsft_0-1644980802367.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started
Loading complete