The features we shall talk about in this part of the series are verification of match occurrence, knowing where match occurs and extracting of matches.
For each feature, I will first say whether you can solve the problem with the RegExp object. If it can be solved, then I will give you the RegExp object method. While we're working with the feature, I will go on to say if the problem can be solved with a String method. If it can be solved in that way, then I will give you the String method. If there is any advantage to using the String method over the RegExp method, I will tell you the advantage before we go to the next feature.
I call the string the pattern is matched against, the available string.