[thelist] Perl regexp question
Carlos Costa Portela
ccosta at servidores.net
Tue Sep 3 06:57:12 CDT 2002
On Tue, 3 Sep 2002, Richard Bennett wrote:
> Hi,
> In a perl parser I'm trying to get the value of a keyword.
>
> Possible values are:
>
> project=main
> project =main
> project= main
> project = main
> And all the above with quotes:
> project="main"
> And with different case:
> Project=Main
Try with
$line = "project = main";
($data,$value) = split("=",$line);
$value =~ s/\ //g;
Good luck,
Carlos.
_______Carlos Costa Portela_________________________________________________
| e-mail: ccosta at servidores.net | home page: http://casa.ccp.servidores.net |
|_____Tódalas persoas maiores foron nenos antes, pero poucas se lembran______|
More information about the thelist
mailing list