Regex for invoice

Hi I’m new to rpa can any one help

I have pdf of invoice I need to extract the

Invoice order I’d

Order ID : OD47890910376

I need output as this OD47890910376

How can I do that one

1 Like

Try like this

Stroutput = System.Text.RegularExpressions.Regex.Match(Strinput.ToString, “(?<=Order ID : )(.*)”).Value.ToString

Explanation

Cheers @shiva_ms

@shiva_ms

outputstr=system.text.regularexpression.regex.match(yourstring,“(?<=Order ID :).*”).value

image

cheers

Hi you can try this

use this expression

(?<=Order ID :[\s*])[0-9A-Z]+

image

try this assign activity

str = “Order ID : OD47890910376”

System.Text.RegularExpressions.Regex.Match(str,"(?<=Order ID :[\s*])[0-9A-Z]+").Value

@shiva_ms

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.