Sebastian Hungerecker
10/3/2007 5:53:00 PM
Peter Vanderhaden wrote:
> I'm trying to write a regular expression for a ruby program. What it
> needs to match is:
>
> 0,,\a where 0 is any digit, then 2 commas, a backslash, then any
> letter.
> ...
> I've tried
>
> if $inrec =~ /[[:digit:]],,\\[[:alpha:]]/
> ...
> but neither works.
Works here.
>> puts "Works!" if '0,,\a' =~ /[[:digit:]],,\\[[:alpha:]]/
Works!
--
NP: My Dying Bride - Two Winters Only
Jabber: sepp2k@jabber.org
ICQ: 205544826