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

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

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

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

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.

Uvais
Frequent Visitor

Link is not working for me.

 

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

Hi @Anonymous, I cannot access the solution. It gives me the following error: 

 

You do not have sufficient privileges for this resource or its parent to perform this action.

Click your browser's Back button to continue.

 

Thanks,

Maarten

What hoops need to be exercised to gain permission to the answer?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,360)