From: Gavin Sinclair Date: 2002-12-29T12:13:25+09:00 Subject: Re: How to specify the period "." character when doing a gsub. On Sunday, December 29, 2002, 2:07:56 PM, Kurt wrote: > All- > Plz advise how to specify the period "." character when doing a gsub. > eg, doing this: > some_object.gsub(/123.456/, "some_string") > seems to treat the "." as a wildcard of some kind. I'd like to hit on the actual character. > Thanks! > -ke '.' is indeed a wildcard (or a "metacharater"). It matches anything except newline (maybe one or two others - see Pickaxe for details). Escape it with a backslash to match a literal '.'. Gavin