<?php
$var_texto = "/comando teste1 teste2 teste3";
echo $matches[0][0], PHP_EOL; // -> /comando
echo $matches[0][1], PHP_EOL; // -> teste1 teste2 teste3
} else {
echo 'Fora do padrĂ£o', PHP_EOL;
}
PD9waHAKJHZhcl90ZXh0byA9ICIvY29tYW5kbyB0ZXN0ZTEgdGVzdGUyIHRlc3RlMyI7CgppZihwcmVnX21hdGNoX2FsbCgnLyhcL1x3Kyl8KFx3K1xzXHcpLiovJywgJHZhcl90ZXh0bywgJG1hdGNoZXMpKSB7CiAgICBlY2hvICRtYXRjaGVzWzBdWzBdLCBQSFBfRU9MOyAvLyAtPiAvY29tYW5kbwogICAgZWNobyAkbWF0Y2hlc1swXVsxXSwgUEhQX0VPTDsgLy8gLT4gdGVzdGUxIHRlc3RlMiB0ZXN0ZTMgICAKfSBlbHNlIHsKICAgIGVjaG8gJ0ZvcmEgZG8gcGFkcsOjbycsIFBIUF9FT0w7Cn0=