From: Luke Crook Date: 2001-05-30T06:11:25+09:00 Subject: [ruby-talk:15956] Re: .scan() using '/' as the regular expression delimiter err, my current code looks something like this (noting that it does not in fact work) regExpr1 = /\d+'/'\s+'/'\d+/ @day, @month, @year = date.scan(regExpr1) -Luke "Luke Crook" wrote in message news:9f12ej$1a5@dispatch.concentric.net... > I am trying to parse an Apache log file. The date field looks like: > [22/May/2001:23:54:41 -0700] > > How would I use the .scan() method when '/' is the delimiter (I'm trying to > store day, month, year as seperate fields). > I have tried \/, "/" , '/', and even [/] but these do not work. > > -Luke Crook > >