Display format for links

@danzu
I’m trying to format an external link with specific content, the same way I did for my tags
For example, I changed my tags #bug to have a red background with ;

 a.tag[data-ref^="bug"]{ 
   color: #fff !important;
   background-color: red;
  	border: 1px solid #fff !important;
}.content

My question is : what is the proper syntax to style an .external-link that contains a specific string in its url ?

I tried with no avail:

.external-link [data-ref*="view.php?id="]{
 background-color: red;
}.content

Thank you for your help!