于 2012-2-9 12:44, lina 写道:
$string =~ m/(\S+)(and|or)(\S+)/;

$string =~ m/(\S+)\s+(and|or)\s+(\S+)/;

HTH.

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to