added regular expressions

regex variable to match whole word other matched characters. very sloppy
but fixed now.