in reply to RE: Re: regexp to return rest of string
in thread regexp to return rest of string
($relative_url) = ($string =~ /content(.*)/);
A _very_ useful version of this trick is with DBI, ie:
$getStuff = $dbh->prepare("select id, price, info from mytable");
$getStuff->execute();
($id, $price, $info) = $getStuff->fetchrow_array();
I use this a ton.
-- Kirby
|
|---|