Matthew Smillie wrote: > On Jul 28, 2006, at 21:56, Robert La ferla wrote: > > > I am trying to quote arguments that have whitespace or a pipe > > (vertical > > bar character = | ) in them. Why doesn't this work? What does work? > > > > > > > > if arg.index(/[\s|]/) > > | is a reserved character in regexes for disjunction, Not in a character class. >> "foo|bar" =~ /[|]/ => 3