Global regexp search would eat all memory for matched empty lines.
Global regexp search would eat all memory for matched empty lines.

E.g. for '^$'. also for '.*'

Task-number: QTCREATORBUG-4443
Change-Id: Ic164361ccdf791c2d0ec3c6ec501e34c9ec3fda6
Reviewed-on: http://codereview.qt.nokia.com/681
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Daniel Teske <d8a411aec9a206efedb4d45b75fe8d13f1e2b628@nokia.com>

darksylinc/qt-creator,syntheticpp/qt-creator,syntheticpp/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,KDE/android-qt-creator,KDE/android-qt-creator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,xianian/qt-creator,dmik/qt-creator-os2,omniacreator/qtcreator,colede/qtcreator,malikcjm/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,farseerri/git_code,bakaiadam/collaborative_qt_creator,malikcjm/qtcreator,Distrotech/qtcreator,KDAB/KDAB-Creator,Distrotech/qtcreator,darksylinc/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,kuba1/qtcreator,KDE/android-qt-creator,ostash/qt-creator-i18n-uk,Distrotech/qtcreator,bakaiadam/collaborative_qt_creator,hdweiss/qt-creator-visualizer,azat/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,malikcjm/qtcreator,darksylinc/qt-creator,syntheticpp/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,malikcjm/qtcreator,KDAB/KDAB-Creator,farseerri/git_code,syntheticpp/qt-creator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,kuba1/qtcreator,xianian/qt-creator,danimo/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,KDAB/KDAB-Creator,darksylinc/qt-creator,azat/qtcreator,colede/qtcreator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,farseerri/git_code,KDAB/KDAB-Creator,kuba1/qtcreator,darksylinc/qt-creator,omniacreator/qtcreator,ostash/qt-creator-i18n-uk,azat/qtcreator,duythanhphan/qt-creator,danimo/qt-creator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,bakaiadam/collaborative_qt_creator,amyvmiwei/qt-creator,bakaiadam/collaborative_qt_creator,danimo/qt-creator,jonnor/qt-creator,hdweiss/qt-creator-visualizer,richardmg/qtcreator,Distrotech/qtcreator,dmik/qt-creator-os2,jonnor/qt-creator,xianian/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,hdweiss/qt-creator-visualizer,colede/qtcreator,amyvmiwei/qt-creator,dmik/qt-creator-os2,AltarBeastiful/qt-creator,jonnor/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,dmik/qt-creator-os2,azat/qtcreator,richardmg/qtcreator,dmik/qt-creator-os2,omniacreator/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,malikcjm/qtcreator,colede/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,KDAB/KDAB-Creator,danimo/qt-creator,syntheticpp/qt-creator,KDE/android-qt-creator,bakaiadam/collaborative_qt_creator,maui-packages/qt-creator,KDE/android-qt-creator,KDAB/KDAB-Creator,maui-packages/qt-creator,hdweiss/qt-creator-visualizer,richardmg/qtcreator,Distrotech/qtcreator,kuba1/qtcreator,dmik/qt-creator-os2,kuba1/qtcreator,amyvmiwei/qt-creator,duythanhphan/qt-creator,KDE/android-qt-creator,darksylinc/qt-creator,colede/qtcreator,azat/qtcreator,maui-packages/qt-creator,danimo/qt-creator,farseerri/git_code,malikcjm/qtcreator,jonnor/qt-creator,azat/qtcreator,maui-packages/qt-creator,danimo/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,farseerri/git_code,KDE/android-qt-creator,xianian/qt-creator,hdweiss/qt-creator-visualizer,jonnor/qt-creator,jonnor/qt-creator,syntheticpp/qt-creator,colede/qtcreator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,KDE/android-qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,dmik/qt-creator-os2,syntheticpp/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,farseerri/git_code,farseerri/git_code,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,ostash/qt-creator-i18n-uk,colede/qtcreator,amyvmiwei/qt-creator,danimo/qt-creator