ivosan has asked for the wisdom of the Perl Monks concerning the following question:
... *con la certeza absoluta*stan de .. que {no hay-e+} *nadie*s *en la casa*loc:st
the characters between * and *stan comprise a stance adverb, in between brackets verb complexes, and the problem is that there is a subject (* and *s) and then the prepositional phrase * *loc:st, but the following expression:
grabs NOT only the last prepositional phrase: *en la casa*loc:st, but also the subject together with it: *nadie*s *en la casa*loc:stif ($line =~ /\s\*(.*?)\*loc/gimx ){
I am trying to make the regexp greedy with the "?" operator, but it doesn't seem to work. Dear Monks what's wrong?
thank you,
ivosan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp not greedy
by thedoe (Monk) on Dec 13, 2005 at 20:37 UTC | |
by ivosan (Initiate) on Dec 13, 2005 at 20:44 UTC | |
|
OT: corpus design (Re: regexp not greedy)
by graff (Chancellor) on Dec 14, 2005 at 04:47 UTC |