Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract section of text

I have, 
10023_23447.pdf as text data in file ,i want only 10023 as output in destination text file ..how can i do? 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

Please refer the below screen shots.0683p000009M302.pngjob flow

 

0683p000009M307.pngtMap

You can use one of the below methods to extract the data.

 

row1.input.substring(0,5)

OR

row1.input.substring(0,row1.input.indexOf("_"))

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Hi @aishj431 

 

     Could you please mark the topic as resolved since I have answered your query?

 

     Marking a query promptly will help others in Talend community when they are looking solutions for similar queries.

 

     It is also a way of telling thank you to the contributor for spending their time for your query in between their regular work.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂