Modified regular expressions for support wrapping in tags.