JavaScript coding challenge

Matching strings using regular expressions

āœØ Your Task

Return true only if string: šŸ‘‰ contains only word characters: letters (a-z, A-Z), numbers (0-9), Underscore (_) AND šŸ‘‰ is at least one character long.

āœļø JavaScript
šŸ‘‰ Press "Run" and check the result below.
Test cases
Should match string Hello
Should not match string Hello there
Should not match empty string

Want to try another challenge?