Atlassian interview question

Javascript regexps