title: laravel regex validation utf-8 (Turkish letter)
body: <p>I'm coding a web site with laravel. But I'm stuck in regex validation , cause my language looks like not supported with regex (probably I couldn't). There is a lot of way to check regex with PHP but I want to check rule with Laravel(4.2) validator. Here is my NOT WORKING code. </p>
  
  <pre><code> ........
  $name = Input::get('academy_name');
      $rules = array(
          'academy_name' =&gt;  array('required','unique:academies,name,' . $name,'regex:/^([a-zA-Z0-9şŞıİçÇöÖüÜĞğ]+[\ \-]?)+[a-zA-Z0-9]+$/')
      );
      $validate = Validator::make(Input::all(), $rules);
      $messages = $validate-&gt;messages();
      if ($validate-&gt;fails()) {
  .............
  </code></pre>
  
  <p>Like you see I want to use "üğÜĞişİŞçöÇÖı" letters. Thanks for all answer and idea.</p>
  
  <p>Edit:
  @henrik After your suggestion, I focus my research on PHP and finally found the answer. It's very simple, I just add /im to end of regex it's works like a charm. Here is my final validation: 
  <code>$rules = array(
              'resource_name' =&gt; array('required', 'unique:resources,name,' . $name, 'regex:/^([0-9a-zA-ZÇŞĞÜÖİçşğüöı]+[\ \-]?)+[a-zA-Z0-9]+$/im'),
              'category' =&gt; 'required',
              'file' =&gt; 'required',
              'class' =&gt; 'required'
          );</code></p>