title: Is there a regex to test if a string is for a locale?
body: <p>I don't know anything about regular expressions but I think I have to use it for my probleme I got some filenames that look like :</p>
  
  <pre><code>MyResource
  MyResource.en-GB
  MyResource.en-US
  MyResource.fr-FR
  MyResource.de-DE
  </code></pre>
  
  <p>The idea is to test if my strings end with "[letter][letter]-[letter][letter]"</p>
  
  <p>I know this is a very noob, but I just have no idea about how to do it, even if I know exactly what I wanna do... :(</p>