Hi,

In message "Re: Parse error within Regexp"
    on Sat, 11 Feb 2006 20:40:40 +0900, Bertram Scharpf <lists / bertram-scharpf.de> writes:
|user@host:~$ ruby -e '"".scan / ,/'
|-e:1: parse error, unexpected ','
|"".scan / ,/
|           ^
|-e:1: unterminated string meets end of file

|I suppose this is not the intended behaviour. What do you
|think?

Ruby interpreted '"".scan / ,/' as

  ("".scan) / ,/

i.e. the first slash was considered as a division operator.  You need
to tell Ruby that is a regular expression, by reforming the expression.

							matz.