$data = "thisisa$biglongstring$ofdata";

($found) = $data =~ /\$(.*)\$/;

print $found;

Like that? It will find and print and characters between the two dollar
signs in the first string.

You need to explain more clearly what you are trying to do, what data you
are working with and give an example of the code you are using.

-----Original Message-----
From: COLLINEAU Franck FTRD/DMI/TAM
[mailto:[EMAIL PROTECTED]]
Sent: 25 September 2001 13:11
To: Perl (E-mail)
Subject: extracting character string


Hi!

How can i do to extract a string between two others strings ?

Thanks

Franck

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to