Extracting Email Address

by GOKILAVANI 2014-04-30 09:31:02

.MATCH(), .TEST() AND :CONTAINS()
Laughing

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:Rolling eyes

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).
943
like
0
dislike
0
mail
flag

You must LOGIN to add comments