http://doc.trolltech.com/4.4/qregexp.html#detailsthis section is based on the information provided there