Re: pattern matching problems

2006-07-08 Thread Mike Williams
Dr. Claus-Peter Becke wrote: > foreach (/(\w+)/i) { > push @words,$&; > } > print$q->popup_menu('to_thesaurus', @words); > > this solution succeeds in finding and returning the last element... There are a few problems here: 1. regex should use the /g modifier to find all matches in the stri

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 map. i have deleted the browser generat