cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dg_Reddy
Frequent Visitor

Regex for Invoice number and discreption

Hi,

 

Column                                    Result

Finance Desc 12345678           12345678 Finance Desc

12345678 Description              12345678 Description

des 12345678                           12345678 des

Description                               Description

 

My Task is. first number should come and then desc has to come. See the result field for reference. if number is not vailable it should come only description in the result. Kindly suggest how to write regex for this. Thanks in advance

 

Regards,

DG

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Rkv_
Resolver II
Resolver II

@Dg_Reddy You can use two parse text actions, One is to retrieve the Text and other is to Retrieve the number.

Rkv__0-1642673158537.png

To retrieve text you need to use [A-Z,a-z,\s?]+ as regex in the parse text action and \d+ to retrieve the number.

Rkv__1-1642673298922.png


I hope this helps you.

View solution in original post

Rkv_
Resolver II
Resolver II

@Dg_Reddy You can use two parse text actions, One is to retrieve the Text and other is to Retrieve the number.

Rkv__0-1642673158537.png

To retrieve text you need to use [A-Z,a-z,\s?]+ as regex in the parse text action and \d+ to retrieve the number.

Rkv__1-1642673298922.png


I hope this helps you.

View solution in original post

3 REPLIES 3
Rkv_
Resolver II
Resolver II

@Dg_Reddy You can use two parse text actions, One is to retrieve the Text and other is to Retrieve the number.

Rkv__0-1642673158537.png

To retrieve text you need to use [A-Z,a-z,\s?]+ as regex in the parse text action and \d+ to retrieve the number.

Rkv__1-1642673298922.png


I hope this helps you.

Rkv_
Resolver II
Resolver II

@Dg_Reddy You can use two parse text actions, One is to retrieve the Text and other is to Retrieve the number.

Rkv__0-1642673158537.png

To retrieve text you need to use [A-Z,a-z,\s?]+ as regex in the parse text action and \d+ to retrieve the number.

Rkv__1-1642673298922.png


I hope this helps you.

Dg_Reddy
Frequent Visitor

This is worked but some times description is having number. kindly provide regex for 

ex:

Column:                                   Result:

Finance 12345 12345678        12345678 Finance 12345

 

1) Find 8 Digit Number - 12345678

2) Find Rest of all apart from 8 Digit Number  -  Finance 12345

??

thanks in advance

 

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!

Top Solution Authors
Top Kudoed Authors
Users online (2,322)