mystring = 'Страниц: 320 (Офсет)'.match('.*?\(([^)]*)\).*')[1] puts mystring