Use character classes, which allow you to define a group of characters you wish to match You place them inside square brackets. To test for a match of characters at the beginning of a string, use the caret ^, but outside of the character set const emmaAtFrontOfString = " Emma likes cats a lot.
4 Comments
Sort: