|No such thing as a small change|
Regex: Matching last of repeated character to end of stringby loris (Hermit)
|on Nov 04, 2005 at 12:16 UTC||Need Help??|
loris has asked for the wisdom of the Perl Monks concerning the following question:
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?
"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 . . ."