Since 2002 or so, a plagiarism detection tool has been used in various courses, mainly for
submitted Java assignments. I describe how Marble can support the lecturer in discovering plagiarism in programs,
how it has been applied, a small experiment to verify that it ``works''
and some of the tricks and techniques that I have used to implement Marble efficiently and without too much effort.
The main trick is the clever use of regular expressions.