On Wed, 25 Jun 2003, D T wrote:

> /"(?:[^\\"]+|\\.)+"/  # did you see the different? :-)

/usr/home/howardat > irb

irb(main):001:0> '"an escaped\" quote"' =~ /"((?:[^\\"]+|\\.)+)"/ && puts("(#{$1})")
(an escaped\" quote)
=> nil

irb(main):002:0> '"an escaped\\\" quote"' =~ /"((?:[^\\"]+|\\.)+)"/ && puts("(#{$1})")
(an escaped\\)
=> nil

this doesn't seem to work?

-a
--
  ====================================
  | Ara Howard
  | NOAA Forecast Systems Laboratory
  | Information and Technology Services
  | Data Systems Group
  | R/FST 325 Broadway
  | Boulder, CO 80305-3328
  | Email: ara.t.howard / noaa.gov
  | Phone:  303-497-7238
  | Fax:    303-497-7259
  | ~ > ruby -e 'p(%.\x2d\x29..intern)'
  ====================================