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

alphanumeric

Strip all non-alphanumeric characters (anything that's not in the "A-Z", "a-z" or "0-9" ranges).

Also see the alpha and digits filters.

Example

[filter alphanumeric]** Test 123: Hello World! **[/filter]

Results in:

Test123HelloWorld

Source code

sub {
    my $val = shift;

    $val =~ s/[^A-Za-z0-9]+//g;
    return $val;
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Monday 26 February 2007 at 12:11 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us