I don't know reg-ex, but this will cover checking that the second arg is wrapped in quotes.
Code:
register_concmd( "amx_test" , "Test" );
public Test( id )
{
if ( !VerifyArgQuotes() )
{
console_print( id , "Proper usage of command is: amx_test <name> ^"Reason^"." );
return;
}
//your code
}
bool:VerifyArgQuotes()
{
new szText[ 128 ] , iPos , iLen;
iLen = read_args( szText , charsmax( szText ) );
if ( szText[ 0 ] == '^"' )
iPos = strfind( szText , "^"" , .pos = 1 ) + 2;
else
iPos = strfind( szText , " " , .pos = 1 ) + 1;
return bool:( iPos && ( szText[ iPos ] == '^"' ) && ( szText[ iLen - 1 ] == '^"' ) );
}
__________________