in reply to Why doesn't non-greediness work?
I see, thanks :)
How do I modify the code to produce the desired output? Swapping solves the problem when Wink appears before Smiley but what if Smiley appears before Wink? Is it possible to have a code that does it whatever the order?