S
sonet
===========================================================================
use strict;
my $a;
my $from;
my $to;
my $id;
my $node;
$a="<info id='id1' to='test\@se6.program.com.tw' type='get'
from='luke\@se6.program.com.tw'/>";
$a =~/ from\=['|"](.*?)['|"][ |>|\/>]/;
$from=$1;
$a =~/ id\=['|"](.*?)['|"][ |>|\/>]/;
$id=$1;
$a =~/ node\=['|"](.*?)['|"][ |>|\/>]/;
$node=$1;
print $node;
use strict;
my $a;
my $from;
my $to;
my $id;
my $node;
$a="<info id='id1' to='test\@se6.program.com.tw' type='get'
from='luke\@se6.program.com.tw'/>";
$a =~/ from\=['|"](.*?)['|"][ |>|\/>]/;
$from=$1;
$a =~/ id\=['|"](.*?)['|"][ |>|\/>]/;
$id=$1;
$a =~/ node\=['|"](.*?)['|"][ |>|\/>]/;
$node=$1;
print $node;