in reply to matching the + character

Along with what everyone else has said above, the function quotemeta comes to mind. Check it out, it will help you when you have other characters you need to quote properly also...