I have a scenario, where in i want to read a pdf —> write the pdf content into a textfile —> read the text file —> get the required values which which has occurred only once
Eg: I my text file, i got something like Mobile Number 88888888888 using regex editor, i managed to get the Mobile Number value,but the problem is, the same content i.e “Mobile Number 88888888888” is repeated thrice in the text file, as a result,i am getting the same value repeated thrice, but, i wanted to get only once (first occurrence)
Please help me with the correct RegEx,so that i can implement the same
No, there are totally 3 times, the same Mobile Number 88888888 is getting reprted…
Eg:
The same text “Mobile Number 88888888” is present in second line, 7’th line and 9’th line of the txt document.
Hence after executing the regex, i am seeing the same value (i.e.Mobile Number 88888888) printed three times,instead, i just want to get it printed only one time
Pls try attached solution and let me know if you have any issues.
output(0).Value -->1 num will display
output(1).Value–>2 num will display
output(2).Value–>3 num will display(as per your input last number "Mobile number after dot having so in that case error will through)change as per your req