Regular expressions

Hi @arivu96,

I have did all the above things before and thank you for suggesting can you tell me the activity/function used to get index

Thanks
Vinath

Hi @vinathkumar,

i think you can achieve from LINQ.
else
create intIndex int variable
use for loop the array and in if condition check contains the string get the index position
by increasing the intIndex value in loop

Regards,
Arivu

Hi @arivu96,

This is the work flow i have created. Is there any mistake in that. Please rectify if it is any mistake.

.Main.xaml (7.5 KB)

Thanks,
Vinath

i Made few changes in your code.FYA

Main (11).xaml (10.1 KB)

Regards,
Arivu

Hi,

Be advised that these three patterns can be combined into a single one, in various ways:

  • Forn|Farm|Form 1040 ([0-9]{4})
  • F[oa]r[mn] 1040 ([0-9]{4})

This last form matches the additional spelling β€œFarn” not included in your list.

Hi,
I have total of 3 different Regex patterns, is it possible to make a regex engine comprising of all the three patterns?
what i am currently doing is, my pdf text is passing through first pattern, if the count is returning 0, it goes through second pattern and so on.
Is it possible that the pdf text extracted passes through all the 3 patterns at once??

Hi,

Something like β€œ(pattern1)|(pattern2)|(pattern3)”?