Updating ReGex from commit https://github.com/joomla/joomla-cms/commit/6ba7987c142e5e859da52a33c5b7f7c62f1d1e64 Thanks JM!