Modify regex to include beginning-of-string anchor