in reply to Wierd Regex stuff..

Yeah I'd like to see more of the code. I think you are probably doing a chop of the variable that you read in and you are losing the "a" in your $search string... Or maybe not, more code would be better...