cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andrei_Kuklin
Regular Visitor

Checking if string consists of digits only

Dear Power Community,

Could you kindly advice of any way of checking if a string consists of digits (1,2,3,4,5,6,7,8,9,0) only?

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

In Power Apps you could do this with the IsMatch() function and use a Regex pattern.  But Power Automate doesn't have a Regex function.  So there is no easy way to do this in a flow. You would have to find a way to process each letter in a loop to see if its Value() is a digit.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User
Dual Super User

In Power Apps you could do this with the IsMatch() function and use a Regex pattern.  But Power Automate doesn't have a Regex function.  So there is no easy way to do this in a flow. You would have to find a way to process each letter in a loop to see if its Value() is a digit.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Thanks Pstork1 for the direction! I have used a loop to check every symbol of the file name

By checking if an array:

Capture.PNG

contains the symbol using the String function substring(FileName,SymbolPosition,1)

Quite bulky but it works.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,217)