You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@jakarta.apache.org on 2004/05/20 22:19:02 UTC

[Jakarta Commons Wiki] New: ValidatorRegExpI18

   Date: 2004-05-20T13:19:02
   Editor: RobertBurrellDonkin <rd...@apache.org>
   Wiki: Jakarta Commons Wiki
   Page: ValidatorRegExpI18
   URL: http://wiki.apache.org/jakarta-commons/ValidatorRegExpI18

   Moved from original wiki

New Page:

----

= Validator Regular Expression I18 FAQ =

== Is it possible to use special characters (like german "Umlaute") in an regular expression.. ==
I tried this:
{{{
    <constant>
      <constant-name>name</constant-name>
      <constant-value>^[\-\'\`\´\.\ a-zäöüßáéíúóàèìùòâêîôûñA-ZÄÖÜÁÉÍÓÚÀÈÌÒÙÑ]+$</constant-value>
    </constant>
}}}

== Answer ==
Samuel Opoku-Boadu answers:
{{{
  <global>
     <constant>
        <constant-name>alphanumeric</constant-name>
        <constant-value>^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-]*$</constant-value>
     </constant>
     <constant>
       <constant-name>alphanumericSP</constant-name>
       <constant-value>^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-\ ]*$</constant-value>
     </constant>
  </global>
}}}
----
Up to ValidatorRegularExpressions

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org