Exact match

Any sequence of characters that's not a special RegEx character or operator represents a character literal:

var pattern = /orange/;

We mean o followed by r followed by a followed by n followed by …—you get the point. We rarely use exact match when using RegEx because that is the same as comparing two strings. Exact match patterns are sometimes called simple patterns.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset