#!/bin/bash

[ $(echo "$1" | grep -P -i '^[a-z0-9_.-]+$' -c) -gt 0 ]