RE: extracting character string

2001-09-25 Thread Brett W. McCoy
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

RE: extracting character string

2001-09-25 Thread John Edwards
$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 exampl

Re: extracting character string

2001-09-25 Thread GoodleafJ
Regular expression, unpack(); depends on exactly what you want to do... Can you be more specific, or give an example? _J COLLINEAU Franck FTRD/