Regex for search until X but not including X" is: