Using regular expressions instead.