Home>exec() JavaScript RegExp Method>Edit It: Search for 'Sweetly' at the end of 'CodeSweetly'Edit It: Search for 'Sweetly' at the end of 'CodeSweetly'This code shows how to search for 'Sweetly' at the end of 'CodeSweetly'.See it on StackBlitz