def extract_arguments(text):
 regexp = re.compile('\\/\\w*(@\\w*)*\\s*([\\s\\S]*)', re.IGNORECASE)
 result = regexp.match(text)
 return (result.group(2) if is_command(text) else None)

def extract_arguments ( text ) : regexp = re . compile ( '\\/\\w*(@\\w*)*\\s*([\\s\\S]*)' , re . IGNORECASE ) result = regexp . match ( text ) return ( result . group ( 2 ) if is_command ( text ) else None )
returns the argument after the command .