Using regex for now.

This should be safer.