If there are three cases, can you break it up into three Strings that you combine into a single regex? This is impossible to read.