Modified regex in library search to not use the global operator