Attribute selectors have the worst performance of any selector. Coupling that with the =~ operator is even more cause for concern. This is why classes and id exist.
The =~ variant is used in Perl and Bash as a regex matching operator.
Edit: I reversed my edits to maintain proper history.
Sa'll good.
Edit: For the record, bGriz edited his comment, making my comment invalid.
Edit (2): Thanks!