Brilliant Staff have emails like [email protected] or [email protected] , i.e. a single alphanumeric word (sometimes with underscores or periods) or name followed by the site address.
Kenji wants to build an app which only the brilliant staff could use. Which of the following regex would be the best for him to use?
.*@brilliant\.org
\w+@brilliant\.org
\w*@brilliant\.org
.+@brilliant\.org
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
From reading the wiki, we can gather that with regular expressions the "\w+" denotes that a word is permitted to preceed the "@brilliant". Following the word is another break () prior to the .org, for reasons unbeknownst to me, though I assume it is because the ".org/com/uk/etc" has special rules. SAVE US TECHIES.