Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
My advice is to break the while statemnt over several lines and add a statement that displays the result of each iteration. The patterns show what happens.
To answer the question: true until there is nothing left to replace. Then it ends.
This comment is hidden because it contains spoiler information about the solution
The while statement will keep on replacing the searched-for text with a null. In other words it will remove all (), even if there are lots of them in the string. The ! indicates in-place. If my memory serves me right, this statement does things like ((())) successfully.