in reply to regex problem with metachars

Have you tried the quotemeta function?