Regular expressions are overkill for this.