On Tue, 25 Sep 2001, John Edwards wrote:
> $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.
For that example, you could use split also. :-)
-- Br
nd 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
Fran
cc:
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]