Refactored regular expression to increase readability