Regex question 11/6/22

Hello I have the below text

PERIOD BILLED SERVICE ADDRESS
JUL 19, 2022 SEP 20, 2022 32 CACHIA LANE
ACCOUNT NUMBER AJAX

in the match regex, I have
StrOutput = System.Text.RegularExpressions.Regex.Match(in_PdfTxt.ToString.Trim,“32 CACHIA LANE”).ToString.Trim

which returns nothing (( need it to return “32 CACHIA LANE”. can someone please help?

What’s the rule here to fine the line mentioned please ?

thanks, it’s written in this expression, simply “32 CACHIA LANE”

StrOutput = System.Text.RegularExpressions.Regex.Match(in_PdfTxt.ToString.Trim,“32 CACHIA LANE”).ToString.Trim

Hey @lynnsong986

Working fine, Kindly check.

Thanks
#nK

thanks for checking but I got different result, any reason for this?

Hey @lynnsong986

Did you execute the assign activity ? as I can see the process is in debug mode…

Also place a log before you assign it to the variable to see if the regex match happens !

Thanks
#nK

yea just realized the regex works fine, it is the next activity that caused the problem writing the range. thanks so much!

1 Like

Cool @lynnsong986 :slightly_smiling_face::+1:

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