Regex test if valid asset name

Javascript tests for both alphabetic and numeric asset names: