For more information... RTFM!
NAVIGATION
RECENTLY VIEWED
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0
Powered by Interchange version 5.7.0

digits

Strip all non-digits from the text.  Return only digits.

Also see the digits_dot, integer and alphanumeric filters.

Example

[filter digits]abc123def456[/filter]

Results in:

123456

Source code

sub {
    my $val = shift;
    $val =~ s/\D+//g;
    return $val;
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Monday 26 February 2007 at 12:12 PM (EST)
SPONSORS
Cursor Software: Expert Interchange consultancy
Webmaint.net: UK Interchange business hosting
Home  |  Legal nonsense  |  Privacy policy  |  Contact us