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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

..

(0) ShareShare
ReportReport
Posted on by 125

..

  • Thomas_Petersen Profile Picture
    86 on at

    That sounds like something RegEx would solve quickly (read the whole invoice and regex the invoice no).

    But you can use RegEx with OCR aswell

    Thomas_Petersen_1-1645173308673.png

    Write an expression like (?<=InvoiceNo).*

  • dheeraj867 Profile Picture
    125 on at

    like i want to extract in this invoice #1167 is the invoice number an i need that

    1.jpg

  • Thomas_Petersen Profile Picture
    86 on at

    In that case, you should use the regex expression

    #\d{4,8}

    where 4,8 is the amount of digits the invoice number can have. In the OCR action, put on the regex marker as shows above and put the expression in the "text to find" box.

  • Thomas_Petersen Profile Picture
    86 on at

    I pasted the wrong action, you don't want to just move the cursor, you want to read the text.

    Use this

    Thomas_Petersen_0-1645174241680.png

    to extract all the text, then use a 'parse text' action to use the regex above.

  • dheeraj867 Profile Picture
    125 on at

    i still not get it can u plz use this invoice and perform this which i shared now i am confused

     

    and i also want that it will automatic extract this data automatic cursor will move 

  • Verified answer
    Thomas_Petersen Profile Picture
    86 on at

    step 1) Open the invoice

    step 2) 

    Thomas_Petersen_0-1645174513179.png

     

    step 3)

    Thomas_Petersen_1-1645174593334.png

    The text should be in the %Match% variable

  • dheeraj867 Profile Picture
    125 on at

    got it sir thank you from which website that i will get this regex expression for each text

    Like i need that date from the invoice also 

  • Thomas_Petersen Profile Picture
    86 on at

    happy to help. There isn't a 'cheatsheet' for using regex, you have to learn how to use it.

    A good resource to test them is https://regex101.com/ . Youtube videos is of course always a way to learn it.

    Good luck!

  • dheeraj867 Profile Picture
    125 on at

    can u give me the regex for date in invoice which i shared😅

  • Thomas_Petersen Profile Picture
    86 on at

    it's a bit complicated and I'm extremely busy. A quickfix would be

    \w{3}\s\d\d,\s\d{4}

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard