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
User Profile
Collapse
-
[CODE=perl]if ($string =~ /\s+(\d{4})\s+/)[/CODE] -
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] -
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] -
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...Last edited by numberwhun; Feb 8 '08, 10:58 AM. Reason: email removed - not allowed in technical forums!Leave a comment:
-
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...Leave a comment:
-
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]
No activity results to display
Show More
Leave a comment: