diff --git a/lib/commands/get.pm b/lib/commands/get.pm
index 2273f0e66aabe9591e5b29e350c0d2898320c7b6..e75036136b581aebebf0ce441efee8e3232ddca3 100644
--- a/lib/commands/get.pm
+++ b/lib/commands/get.pm
@@ -27,8 +27,9 @@ sub exec {
     my $req;
     my $rows;
 
-    my @words = ($msg =~ /(?:^| )([\S]+)/g);
-    print "@words";
+    my @words = ($msg =~ /(?:^| )([^#\s]+)/g);
+    print "@words\n";
+    print "@tags\n";
 
     if (not defined $last_req or $msg ne $last_req) {
         my $dbh = utils::db::get_session;