Hi Chandra,

There are two alternatives:
1. Broutforce Approach: Read the text file line by line, and split text.
Ex: st = "Text (some more text) more and more and more text."
first split based on '(' u ll get "some more text) more and more and more
text." as the second half of split, now split this based on ')' and extract
the first part.

2. You can use regular expressions or pattern matching to extract the text.
*
Regards,
Vs.*



On Thu, Mar 25, 2010 at 6:55 PM, Chandra_Dasaka <
[email protected]> wrote:

>  Dear all, Need some help.
>
> I have a text file. This contains variable length records. Each record has
> some text (variable length) followed by some info within parenthesis () then
> some other text (again variable length). Can I extract the text which is
> enclosed within the parenthesis ? If yes, how?  Appreciate your help
>
>
>
> Best Regards,
>
> Chandra S Dasaka
>
> ------------------------------
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>

Reply via email to