Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: cvs

interchange - docelic modified code/Filter/digits_dash.filter

 

 

Interchange cvs RSS feed   Index | Next | Previous | View Threaded


interchange-cvs at icdevgroup

Apr 27, 2008, 10:37 AM

Post #1 of 1 (41 views)
Permalink
interchange - docelic modified code/Filter/digits_dash.filter

User: docelic
Date: 2008-04-27 17:37:10 GMT
Added: code/Filter digits_dash.filter
Log:
* digits_dash filter, very similar to digits_dot.

Passes things like: 90901213-2133

Revision Changes Path
1.1 interchange/code/Filter/digits_dash.filter


rev 1.1, prev_rev 1.0
Index: digits_dash.filter
===================================================================
# Copyright 2008 Interchange Development Group
# Copyright 2008 Davor Ocelic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
#
# $Id: digits_dash.filter,v 1.1 2008-04-27 17:37:10 docelic Exp $

CodeDef digits_dash Filter
CodeDef digits_dash Description Digits-dashes
CodeDef digits_dash Routine <<EOR
sub {
my $val = shift;
$val =~ s/[^\d-]+//g;
return $val;
}
EOR





_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs

Interchange cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.