Get only the first occurrence in intelligence OCR

we can two simple assign activity or two matches activity with that input string and expression mentioned…we will also get the outputt with a variable of type
System.Collections.Generic.Ienumerable(System.Text.RegularExpressions.Regex.Match)
this applies the same for assign activity as well where the left side variable will be of this type

–then pass this to a FOR EACH loop as a input and change the type argument as
System.Text.RegularExpressions.Regex.Match and inside that we can use writeline to see all the matched value
but
if we want only the first value then we can mention like this for both the expression
str_output = System.Text.RegularExpressions.Regex.Matches(str_input,“(?<=DUE DATE).*”)(0).ToString

replace this expression (?<=DUE DATE).* for the another one you have so that we will be getting the first occurence of them

Cheers @Sweety_Girl

As I said, My pdf may have repetition of same page or same format of page

thats fine buddy
but that expression with index specified will give us the first occurence
Cheers @Sweety_Girl