Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Regexp::Extended 0.01

    Download button

    No screenshots available
    Downloads: 274  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daniel Shane | More programs
    Perl Artistic License / FREE
    April 3rd, 2007, 23:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Regexp::Extended description

    Regexp::Extended is a Perl wrapper that extends the re module with new features.

    Regexp::Extended is a Perl wrapper that extends the re module with new features.

    SYNOPSIS

    use Regexp::Extended qw(:all);

    # (?...): named parameters
    $date =~ /(?d+)-(?d+)-(?d+)/;
    if ("2002-10-30" =~ /$date/) {
    print "The date is : $::year->[0]-$::month->[0]-$::day->[0]n";
    }

    # You can also access individial matches in ()* or ()+
    "1234" =~ /(?d)+/;
    print "Digit 1 is : $::digit->[0]n";
    print "Digit 2 is : $::digit->[1]n";
    ...

    # You can also modify individual matches
    "1234" =~ /(?d)+/;
    $::digit->[0] = 99;
    $::digit->[1] = 88;
    print "Modified string is: " . rebuild("1234"); # "998834"

    # (?*...): upto a certain pattern
    $text = "this is some italic text";
    $text =~ /((?*))/; # $1 = "italic"

    # (?+...): upto and including a certain pattern
    $text = "this is some italic text";
    $text =~ /((?+))/; # $1 = "italic"

    # You can also use fonctions inside patterns:

    sub foo {
    return "foo";
    }

    "foo bar" =~ /((?&foo()))/; # $1 => "foo"

    Rexexp::Extended is a simple wrapper arround the perl rexexp syntax. It uses the overload module to parse constant qr// expressions and substitute known operators with an equivalent perl re.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl wrapper | extends re module | Perl module | Regexp::Extended | Perl | wrapper

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM