From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-09-17T16:42:51+09:00 Subject: escaping for regexp ??? i've a regexp like that : /.*#{name}$/ === path however the variable "name" could, for example, in the form of : "L2 Cache (per CPU)" then, the string "name" might contain reserved chars for regexp, i plan to escape them replacing "(" by "\\(" etc... however i wonder if such a function for escaping reserved chars does exists buit-in ??? notice i don't want to escape ".*" because i plan to use the wild card. -- une b�vue