The following style rule selects any attribute whose value begins with "en" and is immediately followed by a hyphen.
<style>
.test { display:none; }
[attr|="en"] { display:block; }
</style>
<div class="test" attr="en-us">Test for [|=] (Hyphen) succeeded.</div>