Yes I know it's been a long time since I was last here. I know you all probably missed me greatly So you should all be happy to know that I should be frequenting the forums a little more often now. Anyway, on to the question. I'm trying to make some validator functions in php to try and prevent sql injection. I am going to use the ereg function, I found a few examples but they look a little bit different than what I'm used to. I was wondering if the regular expressions used by this function are the same as the expressions you can use with grep (linux command line tool).