Re: pattern matching problems

2006-07-08 Thread Mumia W.
Dr. Claus-Peter Becke wrote: dear mumia w., thank you for your support. i have chosen the simplest solution you recommanded. i still have one problem. i would like to print every word in a new line. push @woerter,/[a-zäöüß]/ig; print$q->li(@woerter); it's unfortunaltely impossible to ch

Re: pattern matching problems

2006-07-08 Thread Mumia W.
Dr. Claus-Peter Becke wrote: [...] foreach (/(\w+)/i) { push @words,$&; } print$q->popup_menu('to_thesaurus', @words); [...] Use the /g (global) option to the match operator, and push $_ onto @words rather than $&: foreach (/(\w+)/ig) { push @words, $_; } Or ditch the 'foreach'

pattern matching problems

2006-07-07 Thread Dr. Claus-Peter Becke
dear members, i'm new in the community. i have some problems processing the query-string exchanged between client and server. i would like to parse the query-string the following way: the query-string contains a sentence, for example: the cat lies on the mat. i have deleted the browser generat

Re: pattern matching problems

2003-06-13 Thread Rob Dixon
Chern Jian Leaw wrote: > HI, > I have a script attached in this mail which reads the output of rpcinfo and > tokenizes its outputs. This problem is similar to my earlier posting a few > days ago. However, in this scenario, the some outputs of rpcinfo response > i.e. "rpcinfo: RPC: Timed out progr

pattern matching problems

2003-06-13 Thread Leaw, Chern Jian
HI, I have a script attached in this mail which reads the output of rpcinfo and tokenizes its outputs. This problem is similar to my earlier posting a few days ago. However, in this scenario, the some outputs of rpcinfo response i.e. "rpcinfo: RPC: Timed out program 1073741825 version 1 is not av

Re: pattern matching problems 2

2003-03-06 Thread R. Joseph Newton
Francesco del Vecchio wrote: > Maybe I can explain better showing you the real problem. > > I have an HTML form and I'm parsing it looking for tags > > When I find one I need to catch the "ACTION" value. > > i.e. > > http://www.somedomain.com method=post> > > I need to catch "http://www.somedomai

Re: pattern matching problems 2

2003-03-06 Thread Rob Dixon
Francesco Del Vecchio wrote: > Maybe I can explain better showing you the real problem. > > I have an HTML form and I'm parsing it looking for tags > > When I find one I need to catch the "ACTION" value. > > i.e. > > http://www.somedomain.com method=post> > > I need to catch "http://www.somedomain

Re: pattern matching problems 2

2003-03-06 Thread Francesco del Vecchio
Maybe I can explain better showing you the real problem. I have an HTML form and I'm parsing it looking for tags When I find one I need to catch the "ACTION" value. i.e. http://www.somedomain.com method=post> I need to catch "http://www.somedomain.com";. Obiouvsly the "method" can also not t

Re: pattern matching problems 2

2003-03-06 Thread Rob Dixon
Francesco Del Vecchio wrote: > > String " bb=somestuff someotherstuff" > > I don't know what "somestuff" and "someotherstuff" are...I only know > that they are two words separed by a space. > > How can I extract 'somestuff' from the string? Hi Francesco . It depends how you want to define wh

pattern matching problems 2

2003-03-06 Thread Francesco del Vecchio
Here I am again ^_^ thanks a lot for the previous answers...they solved my problem. I have another problem of the same kind...let me explain: = String " bb=somestuff someotherstuff" I don't know what "somestuff" and "someotherstuff" are...I only kn

Re: pattern matching problems

2003-03-06 Thread Stefan Lidman
#!/usr/bin/perl -w use strict; my $string = q(); my $string2 = 'a xxbxxx b a xxaxx b'; print "$1\n" if $string =~ m!kiwpg=(.*?)'!; #' my @array = $string2 =~ m/a(.*?)b/g; print "@array\n"; __END__ . match one of anything * match what is before it 0 or more

Re: pattern matching problems

2003-03-06 Thread Pete Emerson
On Thu, 2003-03-06 at 09:32, Francesco del Vecchio wrote: > If I have a string as the following: > a xx b a x b > and I try a m/a(.*)b/g > $1 = xx b a x > what have I to do to obtain two matches each of one give me > $1 = x #!/usr/bin/perl -w u

pattern matching problems

2003-03-06 Thread Francesco del Vecchio
Hi to all, Im new to the list and to the Perl too...and I've some problems with pattern matching. from a string of this kind: that can have none or more parameter (as color) I would like to estract th 'kiwpg' value. How can I do? = another problem If I have a string