Hi Guys...
I am new to regular expression and perl. I want right and regular
expression to catch Tony or Anthony so I did it something like this..
[tony?anthony]. It will be great if some could tell me how to optimize
this to good regular expression. I am writing this in perl.
Thanks in advance.
u guys... after I published the question I didn't get
a chance to look so I used something like this which did the job /
\b(tony|anthony)\b/i .. I think i am going to see the performance
difference between that and /tony/i || /anthony/i ... do we have a
inbuilt time function in perl..?
Tha
Sorry my previous entry I didn't have much information,
What i want to do is, allow the user to input word until the user
enter a certain key to end the standard input. I am not sure how to do
this in perl... may be i am not using regex correctly... or may be i
am not handling the control structu
Can someone tell me how to allow user to keep enter data until the
user hit certain key such as /q/i i was thinking something like this
print "enter data\n";
$userInput = ;
while(chomp($userInput) ne /q/i ) {
#bla bla bla
}
Thanks in advance...
--
To unsubscribe, e-mail: [EMAIL PROTECT
On Oct 21, 4:08 am, [EMAIL PROTECTED] (Jeremy Kister) wrote:
> On 10/21/2007 1:05 AM, newBee wrote:
>
> > $userInput = ;
> > while(chomp($userInput) ne /q/i) {
> >@lineArray = split '\W+', $userInput;
> >foreach $word(@lineArray){
&g
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
Its look like an email address... is it..? it will be a great help if
some one could give a breakdown on the this regex.
thanks in advance...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I have the fallowing code segment in my code. I want to print my
%termWeightHash to see if i have correct data at the end of the this
computation. Since this hash has two keys(I guess way to think that is
hash within) I am not sure how to print it..
regular one key has i could print like this...
I have the fallowing code segment in my code. I want to print my
foreach $document(@documents){
$valueOfTermD = 0;
$powerOfTermD = 0;
foreach $term(keys %termWeightHash){
if($termWeightHash{$term}{$document}){
$powerOfTermD = $powerOf
I am in the process creating in some queries using a Perl script and
want to run the out put of the perl script against another external
software. As example lets say I have Perl script which takes a query
string cleanup all wild characters and run that against the Google,
Yahoo, Ask etc. How can i
On Nov 1, 7:39 am, [EMAIL PROTECTED] (Paul Lalli) wrote:
> On Nov 1, 1:32 am, [EMAIL PROTECTED] (newBee) wrote:
>
> > I am in the process creating in some queries using a Perl script and
> > want to run the out put of the perl script against another external
> > softwar
Hi after going over the FAQ and the examples I decided to write a
small script to understand the WWW::Mechanize module. Since Google has
one field and two buttons I thought this would be a straight forward
one. So I wrote the fallowing script. At the end of the script I
thought the script will fill
I have the fallowing html code, and in this code segment i want to
fill the field but the problem is instead of name the field as they use the tag.
It will be a great help if someone could guide me on this...
Hello All,
I have been having trouble figuring out Mechanize module specially on
getting back the results after submitting a form. I am trying to
access ancestry dot com to get the results according to the the form
that I submit. Fallowing code is written to fill the First Name input
field and Las
15 matches
Mail list logo