Extracting Email Address
by GOKILAVANI[ Edit ] 2014-04-30 09:31:02
.MATCH(), .TEST() AND :CONTAINS()
Together with the jQuery :contains() selector,one can use the
pure JavaScript functions .match() and .test() to
save time when filtering for string values.
Examples:
Extract email addresses from inside HTML (i.e. a string).
We can use
.test() to check whether any emails are present, and use
.match() to extract them.
:contains() selector to
match elements with substrings inside any of that element’s descendants (this is case sensitive).