in reply to Regex word boundries

here you go dude...You can refer it before you frustrate.BTW, I didn't go through your code, but I would suggest "start small and sustain effort" approach....Just do the regex in a seperate file and test for all the case's.When something that matches exactly raises use in wherever you want...

The world is so big for any individual to conquer