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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard