Sorry this prolly wont make sense to you, but is mainly for me.
You can use jQuery’s regular expressions to find what you’re looking for in a string.
^ = identify the value at the beginning
$ = identify the value at the end
* = identify the value at an arbitrary position.
This is useful for finding stuff such as href’s that have ‘mailtos’ etc. so you can .addClass of ‘.email-icon’ or whatever.