Added ability to take regex parameter and only update files which match