![]() |
|
"be consistent" | |
PerlMonks |
Regex: Matching last of repeated character to end of stringby loris (Hermit) |
on Nov 04, 2005 at 12:16 UTC ( [id://505682]=perlquestion: print w/replies, xml ) | Need Help?? |
loris has asked for the wisdom of the Perl Monks concerning the following question: Hello all, I wanted to remove the final section of an XPath string using a regex. I obviously don't understand non-greediness, because I though this would work:
I had hoped to get
Can anyone help? Thanks, "It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ."
Back to
Seekers of Perl Wisdom
|
|