redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Saturday 17 November 2018 13:21

Ask your IT question here

Search a string in python and return the string



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
prashanth
Guest Programmer




Hi all,

I ahve got a requirement of searching for a string in a text file and then return that string. I also need to convert that to numerical value
Could anyone please tell me how to do it?
The requirement is precisely like this:
First I need to search for a string "Employee" in a text file. And then I need to search for "telephone no" and after that I need to return what ever value is there in telephone no=1233455343. i.e. I should return 1233455343.

Regards,
Prashanth

Reply with quote
 
Guest Programmer





prashanth wrote:
Hi all,

I ahve got a requirement of searching for a string in a text file and then return that string. I also need to convert that to numerical value
Could anyone please tell me how to do it?
The requirement is precisely like this:
First I need to search for a string "Employee" in a text file. And then I need to search for "telephone no" and after that I need to return what ever value is there in telephone no=1233455343. i.e. I should return 1233455343.

Regards,
Prashanth


I have the same issue, but the file I need to scan and extract from
is and RTF file. any ideas?

Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo