Link to target1test
Link to target2test
Link to target3test
Link to target4test
Link to target5test

1. Attribute Starts With Selector [name^=value]

$('a[href^=\\#]').size();

$('body').find('a[href^=\\#]').size();

1.1 without escaping

$('a[href^=#]').size();

$('body').find('a[href^=#]').size();

1.2 without metacharacters

$('a[title^=target]').size();

$('body').find('a[title^=target]').size();

2. Attribute Ends With Selector [name$=value]

$('a[href$=test]').size();

$('body').find('a[href$=test]').size();

3. Attribute Contains Selector [name*=value]

$('a[href*=\\#]').size();

$('body').find('a[href*=\\#]').size();

$('a[href*=test]').size();

$('body').find('a[href*=test]').size();