tidy up
split pattern and use single quotes to preserve backslashes
Tune look-behind and look-ahead matches