Yugal_Raju
(Yugal Raju)
1
Hello All,
I have got text output form a PDF file.
Example:
Note receipt.
Date 19:01:23
SLno date Status Error submitted
00077655 12/12/22 Approved Non
Completed
I want to split the text into separate lines and be able to extract “Approved” from the 3rd line.
Kindly please suggest the way to do this.
Kindly Please help.
Thanking you
Hi @Yugal_Raju input
Read pdf text and then inputstring.split(environment.newline)(3).split(" ")(2)
Yugal_Raju
(Yugal Raju)
3
Can you please explain a bit more
I’m getting error cannot convert String to Char
indra
(Indra)
4
@Yugal_Raju Can you specify what’s the exact output you are expecting from below data
Yugal_Raju
(Yugal Raju)
5
I required the Word “Approved” from the 4th line.
Remove approved from code just give empty space
Yugal_Raju
(Yugal Raju)
7
Hi Sangeetha
I’m facing the same error
Anil_G
(Anil G)
8
@Yugal_Raju
Are you trying to check if the given string contains approved?
If yes then str.Contains("Approved")
will give true if present here str is the string variable containing your string
Cheers
@Yugal_Raju
inputstring.split(environment.newline)(3).split(’ ')(2)
Try now
system
(system)
Closed
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.