* Add enclair_db option to UserDB.pm. Allows logging of enclair password
[interchange.git] / code / Filter / alpha.filter
1 # Copyright 2002-2007 Interchange Development Group and others
2 # Copyright 1996-2002 Red Hat, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.  See the LICENSE file for details.
8
9 # $Id: alpha.filter,v 1.7 2007-08-20 21:11:09 jon Exp $
10
11 CodeDef alpha Filter
12 CodeDef alpha Description A-Za-z only
13 CodeDef alpha Help  Returns only ASCII alphabetic characters (A-Z and a-z)
14 CodeDef alpha Routine <<EOR
15 sub {
16         my $val = shift;
17         $val =~ s/[^A-Za-z]+//g;
18         return $val;
19 }
20 EOR