web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Basic form regex valid...
Power Pages
Unanswered

Basic form regex validation not allowing correct inputs when using a lookahead RegEx

(0) ShareShare
ReportReport
Posted on by 2

Hi all, 

 

Please help me with this, I have a requirement to use multiple regex to validate a mobile phone number field on a basic form within Power Pages, these are: 

 

1 - ^(07\d{8,12}|447\d{7,11})$ 

2 - ^[\x00-\x7F\xA0-\xFF]+$

 

I am trying to use basic form metadata on the field, but have seen that it is not possible to have 2 different basic form metadata pointing at the same attribute. So, I have combined these RegEx using the following expression: 

 

3 - ^(07\d{8,12}|447\d{7,11})(?=[\x00-\x7F\xA0-\xFF]+)$ 

 

Which has been tested and validated using regex101: build, test, and debug regex 

However, in power pages even when I input a valid uk mobile number e.g. 07788899900 the error message for the metadata still shows, not allowing me to submit the form. 

 

Am I missing something here? Does a basic form Metadata only allow a single RegEx? 

 

Please advise

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
DP_Prabh Profile Picture

DP_Prabh 38

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard