Case-insensitive modifier for regexp which matches package versions

I've had problems with a package Version like this:

vagrant@excellence:~$ pear list
Installed packages, channel pear.php.net:
=========================================
OLE                      1.0.0RC1 beta

RC could not be matched as only lowercase characters were allowed within the version
Merge pull request #12 from datadevelopment/non-lower-case-package-version

Case-insensitive modifier for regexp which matches package versions