Remove printf and replace them by qDebug()
Fix regexp fail
Merge pull request #2708 from Atlante45/replace_printf

Replace printf