User Profile

Collapse

Profile Sidebar

Collapse
alimsdb
alimsdb
Last Activity: Jul 18 '08, 08:28 AM
Joined: Feb 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • alimsdb
    started a topic PorterSteeming.pm use
    in Perl

    PorterSteeming.pm use

    I want to do portesteeming on my text file. I have PorteSteeming.p m file.

    But I dont know how to use that file to do stemming in my text file.

    What will be the code to give input file and get output file after file words have been steemed.

    Help required
    See more | Go to post

  • alimsdb
    replied to how to Exactly match a 4 digit number
    in Perl
    [CODE=perl]if ($string =~ /\s+(\d{4})\s+/)[/CODE]
    See more | Go to post
    Last edited by eWish; Mar 17 '08, 01:09 PM. Reason: Please use code tags

    Leave a comment:


  • alimsdb
    started a topic how to Exactly match a 4 digit number
    in Perl

    how to Exactly match a 4 digit number

    Exactly match a 4 digit number

    My program but output is 2569 but I want it to output four digit no 2004.

    [CODE=perl]use strict;
    my $string = "I have 256987, 2004 and I a 587458";

    if ($string =~ /(\d{4})/)
    {
    print $1;
    }[/CODE]
    See more | Go to post
    Last edited by eWish; Mar 17 '08, 01:08 PM. Reason: Please use code tags

  • I want to check that all characters in a word are capital or not

    This code I have written but even Good not contains all capital words like GOOD the output of my code is All word is capital which is wrong.

    Can any one help me to solve this problem.

    [CODE=PERL]my $element = "Good";
    if ($element =~ /[A-Z]/g)
    {
    print "All word is capital";
    }
    else
    {
    print "Not all word capital"
    }[/CODE]
    See more | Go to post
    Last edited by eWish; Mar 6 '08, 07:42 AM. Reason: Please use code tags

  • alimsdb
    replied to Html tag removing but keeping <a href tag
    in Perl
    Title : yes it is CPAN Module Version: 2.04
    --------------------------------------------------------------------------------
    http://search.cpan.org/~sburke/HTML-...L/Formatter.pm

    Aforementioned is the link of the CPAN formatter.pm file. When we use Formatter.pm and FormatText.pm files it removes all the Html tags present in Html file. What I want is to remove all the tags but keeping the tags which starts...
    See more | Go to post
    Last edited by numberwhun; Feb 8 '08, 10:58 AM. Reason: email removed - not allowed in technical forums!

    Leave a comment:


  • alimsdb
    replied to Html tag removing but keeping <a href tag
    in Perl
    I have writtern all detail about this module i n your private messages box. It is actually CPAN module and also used for removing or some partially removing html tags from html file. Waiting for your response.
    Regards

    ALI...
    See more | Go to post

    Leave a comment:


  • alimsdb
    started a topic Html tag removing but keeping <a href tag
    in Perl

    Html tag removing but keeping <a href tag

    By using Formatter.pm in perl we can remove all html tags. But I want to keep tag <a href and remove all other tags. Can any body help me to change Formatter.pm file to do this task.

    [CODE=perl]sub a_start
    {
    #shift->{anchor}++;
    #1;
    }

    sub a_end
    {
    #shift->{anchor}--;
    }[/CODE]
    See more | Go to post
    Last edited by eWish; Feb 6 '08, 04:58 AM. Reason: Please use [CODE][/CODE] tags
No activity results to display
Show More
Working...