cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

split a string at the first number

I'm trying to split a string in Flows at the first sign of any number.

 

I have some text formatted: "TEXT1234" for a list of items and I want to be able to split this string when the first of any number appears as the numbers can range from 0000 to 9999.

 

Usuaully I would have used a regular expression to solve this but I'm not sure how this works in powerapps or if it's even supported.

 

Any advice appreciated, thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: split a string at the first number

hi @v-yamao-msft,

 

Unfortunately I'm performing some of the calculations in Flows because I have to use Microsoft Flows for a large majority of my application,

 

While I'm slowly working on ways around using Flows for this particular function, I posted the exact question in another part of the forums but I wanted to know whether it was possible in Flows,

 

The answer to this question is here: https://powerusers.microsoft.com/t5/Expressions-and-Formulas/splitting-strings-at-any-number/m-p/146..., And my solution is to perform some of the calculations in one Flow, return it to the powerapp to perform the necessary function with IsMatch using regular expressions and send that data to a new Flow.

 

While rather 'clunky', the whole execution from start to finish doesn't actually take too long so this worked great, thank you for your help.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: split a string at the first number

Hi @Anonymous,

 

Are you working with PowerApps? There is a doc on Split function in PowerApps, please check it at here:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-split

 

I would suggest you post the PowerApps related issues on PowerApps Forum so that you might get the most qualified answers from there.

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: split a string at the first number

hi @v-yamao-msft,

 

Unfortunately I'm performing some of the calculations in Flows because I have to use Microsoft Flows for a large majority of my application,

 

While I'm slowly working on ways around using Flows for this particular function, I posted the exact question in another part of the forums but I wanted to know whether it was possible in Flows,

 

The answer to this question is here: https://powerusers.microsoft.com/t5/Expressions-and-Formulas/splitting-strings-at-any-number/m-p/146..., And my solution is to perform some of the calculations in one Flow, return it to the powerapp to perform the necessary function with IsMatch using regular expressions and send that data to a new Flow.

 

While rather 'clunky', the whole execution from start to finish doesn't actually take too long so this worked great, thank you for your help.

View solution in original post

Uvais
Frequent Visitor

Re: split a string at the first number

Link is not working for me.

 

Can someone help with expressions to be used in MS Flow.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (416)