于 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to