title: Regex for Words or Names For a Specific Language
body: <p>I'm interested in language-specific validators via regex.  I know that I can validate a person's name, in any language, with a pattern like this:</p>
  
  <pre><code>“[\p{L}\p{M}]”
  </code></pre>
  
  <p>But what if I want validation to be for a specific language?  It would be nice if my thread's <a href="http://msdn.microsoft.com/en-us/library/system.threading.thread.currentuiculture" rel="nofollow">CurrentUICulture</a> or CurrentCulture setting would simply convert the meaning of <code>"[\w]"</code> to something appropriate for German, Spanish, English, and especially Chinese.  Does it work that way?  If yes, then this is likely my answer.</p>
  
  <p>If not, then my next interest would be to use a <a href="http://www.regular-expressions.info/unicode.html#script" rel="nofollow">regex script annotation</a>.  However, I notice that:</p>
  
  <ol>
  <li>The list given in that link does not include simplified "Chinese", which I am particularly interested in. </li>
  <li>I don't think .NET regex capabilities support script-based matching.  Yes? No?</li>
  </ol>
  
  <p>So my final option, if I can't get the prior two options to work, is to turn to <a href="http://msdn.microsoft.com/en-us/library/20bw873z.aspx#CategoryOrBlock" rel="nofollow">named blocks</a>.  At least the list of <a href="http://msdn.microsoft.com/en-us/library/20bw873z.aspx#SupportedNamedBlocks" rel="nofollow">.net supported named blocks</a> includes several entries for CJK.  I suppose I can simply combine the several CJK blocks, and call that (simplified) "Chinese."  </p>
  
  <p>Thoughts?</p>