Corrected pattern for case 'begin' in regexp class