From: Robert Klemme Date: 2003-01-07T22:43:54+09:00 Subject: Re: Regular expressions alternative you're essentially reversing the semantics of meta characters. i don't know whether people will appreciate this since this can lead to wired errors, when you don't realize the option is set. why not just write a function that escapes all meta characters? robert "Maur�cio" schrieb im Newsbeitrag news:aveea7$3gg$1@main.gmane.org... > Hi, > > Wouldn't it be a good idea to create a option (say, b) for regular > expressions such that all characters (except / and \) would match > themselves unless preceeded by a backslash? For instance: > > /http:\/\/www.ruby-lang.org/b > > would match only the site name, and > > /Something\$/b > > would match Something at an end of line? > > [.......], > Maur�cio > > >